summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-09-09 05:05:57 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-09-09 05:05:57 (GMT)
commit966f5f42368663fb589807ae28b2887b98ed8067 (patch)
treed185fc30d5649957054032397863072410f0a933 /examples
parenta949d226d836d1fb1a07fa6c748f137e21d73d28 (diff)
downloadhdf5-966f5f42368663fb589807ae28b2887b98ed8067.zip
hdf5-966f5f42368663fb589807ae28b2887b98ed8067.tar.gz
hdf5-966f5f42368663fb589807ae28b2887b98ed8067.tar.bz2
[svn-r11381] Purpose:
bug fix. Description: In Janus (Tflops), the test would seg-fault in production (compiled with -O). If compiled with -O0, it would be okay. Track down the problem to the for loop index i & j being declared with type hsize_t which is usually unsigned long int. Guess the Tflop compiler has a bug in optimization that could not handle unsigned int as for loop index. Solution: Since it is no need for i & j to be hsize_t and it makes more sense to have them with type int. Changed them to int type. Platforms tested: Passed in tflops and colonelk here.
Diffstat (limited to 'examples')
-rw-r--r--examples/h5_chunk_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_chunk_read.c b/examples/h5_chunk_read.c
index 7bc7324..636a635 100644
--- a/examples/h5_chunk_read.c
+++ b/examples/h5_chunk_read.c
@@ -46,7 +46,7 @@ main (void)
int chunk_out[2][5]; /* buffer for chunk to be read */
int column[10]; /* buffer for column to be read */
int rank, rank_chunk;
- hsize_t i, j;
+ int i, j;