summaryrefslogtreecommitdiffstats
path: root/src/H5Tconv.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-08-11 22:45:42 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-08-11 22:45:42 (GMT)
commit39da36afe56ee6627892bc0e31c0b0694f4b5a64 (patch)
tree959f0c50b8daad3ecd2f01af8933b35952b6e2a9 /src/H5Tconv.c
parentcf377ac318fe294d3ebcd20457c7c954bb083b0d (diff)
downloadhdf5-39da36afe56ee6627892bc0e31c0b0694f4b5a64.zip
hdf5-39da36afe56ee6627892bc0e31c0b0694f4b5a64.tar.gz
hdf5-39da36afe56ee6627892bc0e31c0b0694f4b5a64.tar.bz2
[svn-r11233] Purpose: Bug fix
Description: In the macro H5T_CONV_Xx_CORE definition, one line said "} else if (*((ST*)S) < (D_MIN)) {". It caused problem on TFLOPS because it defines LLONG_MIN as a hexadecimal value instead of decimal value. Solution: Changed the line to "} else if (*((ST*)S) < (DT)(D_MIN)) {" to avoid the problem. (Need to change other similar places when time permits.) Platforms tested: fuss - simple change.
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r--src/H5Tconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index ee917fe..4746b10 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -208,7 +208,7 @@ H5FL_BLK_DEFINE_STATIC(array_seq);
*((DT*)D) = (D_MAX); \
} else if (*((ST*)S) == (DT)(D_MAX)) { \
*((DT*)D) = (D_MAX); \
- } else if (*((ST*)S) < (D_MIN)) { \
+ } else if (*((ST*)S) < (DT)(D_MIN)) { \
if(cb_struct.func) { \
H5T_conv_ret_t except_ret; /*callback return*/ \
\