diff options
author | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2015-10-23 04:52:32 (GMT) |
---|---|---|
committer | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2015-10-23 04:52:32 (GMT) |
commit | 62563badd88b9c308e992d39d0929fd8c771ee87 (patch) | |
tree | 8ad30227c16c8aa5ed2f160e154f750485289ba4 | |
parent | 543ec79118fa8f91fba4bff43d355d71c83b98f6 (diff) | |
download | hdf5-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)
-rw-r--r-- | src/H5FDmulti.c | 4 |
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; \ |