summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2015-10-23 22:16:08 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2015-10-23 22:16:08 (GMT)
commitacbb71201b0adbb0961b0b5dcf8c5a830ac5cfa6 (patch)
treec5c1b16fb2d25dae08c4caa3255766b477d57ce2 /src
parent62563badd88b9c308e992d39d0929fd8c771ee87 (diff)
downloadhdf5-acbb71201b0adbb0961b0b5dcf8c5a830ac5cfa6.zip
hdf5-acbb71201b0adbb0961b0b5dcf8c5a830ac5cfa6.tar.gz
hdf5-acbb71201b0adbb0961b0b5dcf8c5a830ac5cfa6.tar.bz2
[svn-r28204] Fix use of hbool_t in H5FDmulti (revert previous fix and use unsigned instead)
Tested on: Sun OS 5.11/64 (emu)
Diffstat (limited to 'src')
-rw-r--r--src/H5FDmulti.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c
index b53b9bf..92df2ad 100644
--- a/src/H5FDmulti.c
+++ b/src/H5FDmulti.c
@@ -46,14 +46,14 @@
/* Loop through all mapped files */
#define UNIQUE_MEMBERS(MAP,LOOPVAR) { \
H5FD_mem_t _unmapped, LOOPVAR; \
- hbool_t _seen[H5FD_MEM_NTYPES]; \
+ unsigned _seen[H5FD_MEM_NTYPES]; \
\
- memset(_seen, 0, H5FD_MEM_NTYPES * sizeof(hbool_t)); \
+ memset(_seen, 0, sizeof _seen); \
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; else _seen[LOOPVAR] = TRUE; \
+ if (_seen[LOOPVAR]++) continue; \
#define ALL_MEMBERS(LOOPVAR) { \
H5FD_mem_t LOOPVAR; \