mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[svn-r457] Fixed another couple of typos in dynamically allocated variables.
This commit is contained in:
parent
4327ebda2e
commit
27fa4c698f
@ -197,7 +197,7 @@ printf("%s: check 2.0, bound_count=%d\n",FUNC,bound_count);
|
||||
/* Check if we've allocated the array yet */
|
||||
if(num_reg==0) {
|
||||
/* Allocate array */
|
||||
ret_value=H5MM_malloc(sizeof(H5S_hyper_node_t));
|
||||
ret_value=H5MM_malloc(sizeof(H5S_hyper_region_t));
|
||||
|
||||
/* Initialize with first region */
|
||||
ret_value[0].start=lo_bounds[next_dim][i].bound;
|
||||
@ -211,7 +211,7 @@ printf("%s: check 2.0, bound_count=%d\n",FUNC,bound_count);
|
||||
ret_value[curr_reg].end=MAX(hi_bounds[next_dim][i].bound,ret_value[curr_reg].end);
|
||||
else { /* no overlap with previous region, add new region */
|
||||
/* Enlarge array */
|
||||
ret_value=H5MM_realloc(ret_value,sizeof(H5S_hyper_node_t)*(num_reg+1));
|
||||
ret_value=H5MM_realloc(ret_value,sizeof(H5S_hyper_region_t)*(num_reg+1));
|
||||
|
||||
/* Initialize with new region */
|
||||
ret_value[num_reg].start=lo_bounds[next_dim][i].bound;
|
||||
|
Loading…
x
Reference in New Issue
Block a user