summaryrefslogtreecommitdiffstats
path: root/hl/examples/ex_lite2.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-03-27 03:06:48 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-03-27 03:06:48 (GMT)
commitc64ac252cdd9fe40b96313e2435551f16428b9d6 (patch)
tree9ff6633ac3ee8fe9529620a0ecfc99bbbab451f8 /hl/examples/ex_lite2.c
parentddf436469153cc5deb7cadfdb9a1b985c605774f (diff)
downloadhdf5-c64ac252cdd9fe40b96313e2435551f16428b9d6.zip
hdf5-c64ac252cdd9fe40b96313e2435551f16428b9d6.tar.gz
hdf5-c64ac252cdd9fe40b96313e2435551f16428b9d6.tar.bz2
[svn-r13549] Description:
Check in changes from Elena and I to get pgcc compiler working again. Primarily (all?) changes to move from using 'hsize_t' as array index to using something else ('size_t') mostly. Tested on: Linux/32 2.4 kagiso w/pgcc
Diffstat (limited to 'hl/examples/ex_lite2.c')
-rw-r--r--hl/examples/ex_lite2.c6
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++)