Skip to content

Commit

Permalink
long double tests has problems setting precision with offset (HDFGrou…
Browse files Browse the repository at this point in the history
…p#4102)

* long double tests has problems setting precision with offset

* Disable long double until more development fixes issues
  • Loading branch information
byrnHDF authored and lrknox committed Mar 21, 2024
1 parent be4ef2d commit 33889ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/dsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -5877,6 +5877,7 @@ test_floattypes(hid_t file)
if (H5Dclose(dataset) < 0)
goto error;
}
#if 0
#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
/* long double */
{
Expand All @@ -5898,9 +5899,9 @@ test_floattypes(hid_t file)
precision = 128;
if (H5Tset_precision(datatype, precision) < 0)
goto error;
if (H5Tset_fields(datatype, (size_t)127, (size_t)112, (size_t)15, (size_t)5, (size_t)107) < 0)
if (H5Tset_fields(datatype, (size_t)127, (size_t)112, (size_t)15, (size_t)0, (size_t)112) < 0)
goto error;
offset = 5;
offset = 0;
if (H5Tset_offset(datatype, offset) < 0)
goto error;
if (H5Tset_size(datatype, (size_t)16) < 0)
Expand Down Expand Up @@ -5966,6 +5967,7 @@ test_floattypes(hid_t file)
if (H5Dclose(dataset) < 0)
goto error;
}
#endif
#endif

return SUCCEED;
Expand Down

0 comments on commit 33889ad

Please sign in to comment.