diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1999-07-16 18:11:52 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1999-07-16 18:11:52 (GMT) |
commit | d762ea6a31d69a9ebe00e6ed818ab6415091b629 (patch) | |
tree | 88c21004ba9aa981aeb5bf18e9002ed9ceae633d /src/H5Sall.c | |
parent | 04e309953892847f42c8c3f8cffffbc862c462f2 (diff) | |
download | hdf5-d762ea6a31d69a9ebe00e6ed818ab6415091b629.zip hdf5-d762ea6a31d69a9ebe00e6ed818ab6415091b629.tar.gz hdf5-d762ea6a31d69a9ebe00e6ed818ab6415091b629.tar.bz2 |
[svn-r1494] Lots of various bug-fixes on VL datatypes. VL datatype fields in compound
datatypes aren't yet working, but other ways of using them (vlen atomic, vlen
compound and vlen vlen atomic, etc.) are working.
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r-- | src/H5Sall.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index db27b00..ff08fbc 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -991,15 +991,15 @@ H5S_all_select_iterate(void *buf, hid_t type_id, H5S_t *space, H5D_operator_t op ret_value=(*operator)(tmp_buf,type_id,rank,mem_offset,operator_data); + /* Decrement the number of elements to iterate through */ + nelemts--; + /* Advance the coordinate (currently in C memory order) */ index=rank-1; /* Leave the byte offset in the element alone */ - while(++mem_offset[index]==mem_size[index] && index>=0) { + while(index>=0 && ++mem_offset[index]==mem_size[index]) { mem_offset[index]=0; index--; } /* end while */ - - /* Decrement the number of elements to iterate through */ - nelemts--; } /* end while */ FUNC_LEAVE (ret_value); |