From 966f5f42368663fb589807ae28b2887b98ed8067 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 9 Sep 2005 00:05:57 -0500 Subject: [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. --- examples/h5_chunk_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12