summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_array.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-03-15 21:42:02 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-03-15 21:42:02 (GMT)
commit18a398023aae0e93fe2e6d99c89af855a766f3e5 (patch)
tree8694dd420ea6b482da618ce7fafca88bc3cd0bfa /tools/lib/h5diff_array.c
parent49ab3665aac51d817c362ebbc79d5835eb892484 (diff)
downloadhdf5-18a398023aae0e93fe2e6d99c89af855a766f3e5.zip
hdf5-18a398023aae0e93fe2e6d99c89af855a766f3e5.tar.gz
hdf5-18a398023aae0e93fe2e6d99c89af855a766f3e5.tar.bz2
[svn-r12094] Purpose:
bug fix Description: long long type was being incorrectly printed Solution: added a long_long cast to print function Platforms tested: linux Misc. update:
Diffstat (limited to 'tools/lib/h5diff_array.c')
-rw-r--r--tools/lib/h5diff_array.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c
index f9f0da7..1bb48c3 100644
--- a/tools/lib/h5diff_array.c
+++ b/tools/lib/h5diff_array.c
@@ -3364,7 +3364,8 @@ hsize_t diff_llong(unsigned char *mem1,
{
print_pos(ph,0,i,acc,pos,rank,obj1,obj2);
parallel_print(SPACES);
- parallel_print(fmt_llong,temp1_llong,temp2_llong,labs((long)(temp1_llong-temp2_llong)));
+ parallel_print(fmt_llong,temp1_llong,temp2_llong,
+ (long_long)labs((long)(temp1_llong-temp2_llong)));
}
nfound++;
}
@@ -3392,7 +3393,7 @@ hsize_t diff_llong(unsigned char *mem1,
print_pos(ph,1,i,acc,pos,rank,obj1,obj2);
parallel_print(SPACES);
parallel_print(fmt_llongp,temp1_llong,temp2_llong,labs((long)(temp1_llong-temp2_llong)),
- labs((long)(1-temp2_llong/temp1_llong)));
+ (long_long)labs((long)(1-temp2_llong/temp1_llong)));
}
nfound++;
}
@@ -3421,8 +3422,9 @@ hsize_t diff_llong(unsigned char *mem1,
{
print_pos(ph,1,i,acc,pos,rank,obj1,obj2);
parallel_print(SPACES);
- parallel_print(fmt_llongp,temp1_llong,temp2_llong,labs((long)(temp1_llong-temp2_llong)),
- labs((long)(1-temp2_llong/temp1_llong)));
+ parallel_print(fmt_llongp,temp1_llong,temp2_llong,
+ (long_long)labs((long)(temp1_llong-temp2_llong)),
+ (long_long)labs((long)(1-temp2_llong/temp1_llong)));
}
nfound++;
}
@@ -3447,7 +3449,8 @@ hsize_t diff_llong(unsigned char *mem1,
{
print_pos(ph,0,i,acc,pos,rank,obj1,obj2);
parallel_print(SPACES);
- parallel_print(fmt_llong,temp1_llong,temp2_llong,labs((long)(temp1_llong-temp2_llong)));
+ parallel_print(fmt_llong,temp1_llong,temp2_llong,
+ (long_long)labs((temp1_llong-temp2_llong)));
}
nfound++;
}