diff options
Diffstat (limited to 'hl/examples/ex_lite2.c')
-rw-r--r-- | hl/examples/ex_lite2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hl/examples/ex_lite2.c b/hl/examples/ex_lite2.c index 5919ef9..98f92c8 100644 --- a/hl/examples/ex_lite2.c +++ b/hl/examples/ex_lite2.c @@ -22,7 +22,7 @@ int main( void ) int data[6]; hsize_t dims[2]; herr_t status; - hsize_t i, j, nrow, n_values; + size_t i, j, nrow, n_values; /* open file from ex_lite1.c */ file_id = H5Fopen ("ex_lite1.h5", H5F_ACC_RDONLY, H5P_DEFAULT); @@ -34,8 +34,8 @@ int main( void ) status = H5LTget_dataset_info(file_id,"/dset",dims,NULL,NULL); /* print it by rows */ - n_values = dims[0] * dims[1]; - nrow = dims[1]; + n_values = (size_t)(dims[0] * dims[1]); + nrow = (size_t)dims[1]; for (i=0; i<n_values/nrow; i++ ) { for (j=0; j<nrow; j++) |