diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-09-14 07:52:29 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-09-14 07:52:29 (GMT) |
commit | 31d70fb3841c928c96b2118eccfd6c92b3753844 (patch) | |
tree | ac6b402f0f0e734d1f991139ca604620732aa714 /c++/examples/create.cpp | |
parent | 90d28e0fbdc7a9f8039e26c216237e2516bd9ea5 (diff) | |
download | hdf5-31d70fb3841c928c96b2118eccfd6c92b3753844.zip hdf5-31d70fb3841c928c96b2118eccfd6c92b3753844.tar.gz hdf5-31d70fb3841c928c96b2118eccfd6c92b3753844.tar.bz2 |
[svn-r11412] Purpose:
bug fix.
Description:
The test would seg-fault in filter test. This happened only if
the test code is compiled with -O2, not if it is compiled with
-O0. The problem was because the array index varialbe i, j
were defined as type hsize_t which is unsigned long long.
The optimization seemed to make some mistake here.
Solution:
Since the data range of the index variables aren't that big.
Changed them to int should be sufficient. (I had tested it
by setting them to type long and it passed all tests. So,
it is safe to use long IF the data ranges need it.)
Platforms tested:
Tflops(janus).
Misc. update:
Diffstat (limited to 'c++/examples/create.cpp')
0 files changed, 0 insertions, 0 deletions