mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Fix wrong base type for enum in transient type test
This commit is contained in:
parent
c95ce50317
commit
ad2db15002
@ -53,7 +53,7 @@ main()
|
||||
if ((H5Dwrite(dsetid, complex_dtype, H5S_ALL, H5S_ALL, H5P_DEFAULT, &expected_z)) <0) ERR;
|
||||
|
||||
/* Create enum datatype, but don't commit to file */
|
||||
if ((enum_dtype = H5Tenum_create(H5T_NATIVE_INT)) < 0) ERR;
|
||||
if ((enum_dtype = H5Tenum_create(H5T_NATIVE_CHAR)) < 0) ERR;
|
||||
enum_value = false;
|
||||
if (H5Tenum_insert(enum_dtype, "FALSE", &enum_value) < 0) ERR;
|
||||
enum_value = true;
|
||||
|
Loading…
Reference in New Issue
Block a user