summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2015-10-23 04:52:32 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2015-10-23 04:52:32 (GMT)
commit62563badd88b9c308e992d39d0929fd8c771ee87 (patch)
tree8ad30227c16c8aa5ed2f160e154f750485289ba4 /src
parent543ec79118fa8f91fba4bff43d355d71c83b98f6 (diff)
downloadhdf5-62563badd88b9c308e992d39d0929fd8c771ee87.zip
hdf5-62563badd88b9c308e992d39d0929fd8c771ee87.tar.gz
hdf5-62563badd88b9c308e992d39d0929fd8c771ee87.tar.bz2
[svn-r28196] Fix use of hbool_t in H5FDmulti
Tested on: Sun OS 5.11/64 (emu)
Diffstat (limited to 'src')
-rw-r--r--src/H5FDmulti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c
index bc61374..b53b9bf 100644
--- a/src/H5FDmulti.c
+++ b/src/H5FDmulti.c
@@ -48,12 +48,12 @@
H5FD_mem_t _unmapped, LOOPVAR; \
hbool_t _seen[H5FD_MEM_NTYPES]; \
\
- memset(_seen, 0, sizeof _seen); \
+ memset(_seen, 0, H5FD_MEM_NTYPES * sizeof(hbool_t)); \
for (_unmapped=H5FD_MEM_SUPER; _unmapped<H5FD_MEM_NTYPES; _unmapped=(H5FD_mem_t)(_unmapped+1)) { \
LOOPVAR = MAP[_unmapped]; \
if (H5FD_MEM_DEFAULT==LOOPVAR) LOOPVAR=_unmapped; \
assert(LOOPVAR>0 && LOOPVAR<H5FD_MEM_NTYPES); \
- if (_seen[LOOPVAR]++) continue;
+ if (_seen[LOOPVAR]) continue; else _seen[LOOPVAR] = TRUE; \
#define ALL_MEMBERS(LOOPVAR) { \
H5FD_mem_t LOOPVAR; \