diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/enum.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/enum.c b/test/enum.c index 35342e2..7ef412f 100644 --- a/test/enum.c +++ b/test/enum.c @@ -218,9 +218,7 @@ test_tr1(hid_t file) if (H5Tenum_insert(m_type, "WHITE", CPTR(eval, E1_WHITE))<0) goto error; if (H5Tenum_insert(m_type, "BLACK", CPTR(eval, E1_BLACK))<0) goto error; -#if !defined (__WATCOMC__) || !defined(__MWERKS__) - assert(sizeof(c_e1)==sizeof(int)); -#endif /* __WATCOMCC__ */ + if ((f_type = H5Tcreate(H5T_ENUM, sizeof(c_e1)))<0) goto error; if (H5Tenum_insert(f_type, "RED", CPTR(ival, 105))<0) goto error; if (H5Tenum_insert(f_type, "GREEN", CPTR(ival, 104))<0) goto error; |