summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5Ztrans.c2
-rw-r--r--test/dtransform.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/H5Ztrans.c b/src/H5Ztrans.c
index 8858b63..d8e45cf 100644
--- a/src/H5Ztrans.c
+++ b/src/H5Ztrans.c
@@ -154,7 +154,7 @@ static void H5Z_print(H5Z_node *tree, FILE *stream);
#define ULLONG_TO_FP_XFORM_TYPE_OP_ERROR
#endif
-#ifndef H5_LLONG_TO_FP_CAST_WORKS
+#ifdef H5_LLONG_TO_FP_CAST_BROKEN
#define LLONG_TO_FP_XFORM_TYPE_OP_ERROR HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "Cannot convert from long long to double: required for data transform")
#else
#define LLONG_TO_FP_XFORM_TYPE_OP_ERROR
diff --git a/test/dtransform.c b/test/dtransform.c
index 8e77590..b3bce4f 100644
--- a/test/dtransform.c
+++ b/test/dtransform.c
@@ -247,14 +247,14 @@ int main(void)
TEST_TYPE_CONTIG(dxpl_id_c_to_f, long, H5T_NATIVE_LONG, "long", windchillFfloat, 1);
TEST_TYPE_CONTIG(dxpl_id_utrans_inv, unsigned long, H5T_NATIVE_ULONG, "ulong", transformData, 0);
-#ifdef H5_LLONG_TO_FP_CAST_WORKS
+#ifndef H5_LLONG_TO_FP_CAST_BROKEN
TEST_TYPE_CONTIG(dxpl_id_c_to_f, long_long, H5T_NATIVE_LLONG, "llong", windchillFfloat, 1);
#else
TESTING("contiguous, with type conversion (float->llong)")
SKIPPED()
#endif
-#ifdef H5_ULLONG_TO_FP_CAST_WORKS
+#ifndef H5_LLONG_TO_FP_CAST_BROKEN
TEST_TYPE_CONTIG(dxpl_id_utrans_inv, unsigned long_long, H5T_NATIVE_ULLONG, "ullong", transformData, 0);
#else
TESTING("contiguous, with type conversion (float->ullong)")
@@ -273,14 +273,14 @@ int main(void)
TEST_TYPE_CHUNK(dxpl_id_utrans_inv, unsigned int, H5T_NATIVE_UINT, "uint", transformData, 0);
TEST_TYPE_CHUNK(dxpl_id_c_to_f, long, H5T_NATIVE_LONG, "long", windchillFfloat, 1);
TEST_TYPE_CHUNK(dxpl_id_utrans_inv, unsigned long, H5T_NATIVE_ULONG, "ulong", transformData, 0);
-#ifdef H5_LLONG_TO_FP_CAST_WORKS
+#ifndef H5_LLONG_TO_FP_CAST_BROKEN
TEST_TYPE_CHUNK(dxpl_id_c_to_f, long_long, H5T_NATIVE_LLONG, "llong", windchillFfloat, 1);
#else
TESTING("chunked, with type conversion (float->llong)")
SKIPPED()
#endif
-#ifdef H5_ULLONG_TO_FP_CAST_WORKS
+#ifndef H5_LLONG_TO_FP_CAST_BROKEN
TEST_TYPE_CHUNK(dxpl_id_utrans_inv, unsigned long_long, H5T_NATIVE_ULLONG, "ullong", transformData, 0);
#else
TESTING("chunked, with type conversion (float->ullong)")