From 39da36afe56ee6627892bc0e31c0b0694f4b5a64 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Thu, 11 Aug 2005 17:45:42 -0500 Subject: [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. --- src/H5Tconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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*/ \ \ -- cgit v0.12