diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-08-25 23:35:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 23:35:25 (GMT) |
commit | 32cb23fe7e5f0a29d113960a36039adfde8398d8 (patch) | |
tree | 271a5ce6b755bcd95deb355426efe9246498fde4 /test/dt_arith.c | |
parent | e367c80b39529c9a863c3236e25bfb46b707b815 (diff) | |
download | hdf5-32cb23fe7e5f0a29d113960a36039adfde8398d8.zip hdf5-32cb23fe7e5f0a29d113960a36039adfde8398d8.tar.gz hdf5-32cb23fe7e5f0a29d113960a36039adfde8398d8.tar.bz2 |
Merge of mostly clang-tidy changes from 1.12 (#965)
Diffstat (limited to 'test/dt_arith.c')
-rw-r--r-- | test/dt_arith.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dt_arith.c b/test/dt_arith.c index 7b79102..91e31d5 100644 --- a/test/dt_arith.c +++ b/test/dt_arith.c @@ -53,7 +53,7 @@ const char *FILENAME[] = {"dt_arith1", "dt_arith2", NULL}; * endian. If local variable `endian' is H5T_ORDER_BE then the result will * be I, otherwise the result will be Z-(I+1). */ -#define ENDIAN(Z, I, E) (H5T_ORDER_BE == E ? (I) : (Z) - ((I) + 1)) +#define ENDIAN(Z, I, E) (H5T_ORDER_BE == (E) ? (I) : (Z) - ((I) + 1)) typedef enum dtype_t { INT_SCHAR, @@ -3058,10 +3058,10 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst) /* Check the software results against the hardware */ for (j = 0; j < nelmts; j++) { underflow = 0; - hw_f = 911.0f; - hw_d = 911.0f; + hw_f = 911.0F; + hw_d = 911.0F; #if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE - hw_ld = 911.0f; + hw_ld = 911.0L; #endif /* The hardware conversion */ |