summaryrefslogtreecommitdiffstats
path: root/tools/h5toh4
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-11-04 03:23:30 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-11-04 03:23:30 (GMT)
commit965e3bc3e20cefeb81b0b88002c1dc42d197c2ff (patch)
tree6fe49900b179c79bf8904760ce6b60953d70021e /tools/h5toh4
parentbd74bf3ff0139edfcd565989458cbbcaeaf6bfb6 (diff)
downloadhdf5-965e3bc3e20cefeb81b0b88002c1dc42d197c2ff.zip
hdf5-965e3bc3e20cefeb81b0b88002c1dc42d197c2ff.tar.gz
hdf5-965e3bc3e20cefeb81b0b88002c1dc42d197c2ff.tar.bz2
[svn-r4591] Purpose:
Code cleanup Description: Fix a bunch of warnings Platforms tested: Linux 2.2 (eirene)
Diffstat (limited to 'tools/h5toh4')
-rw-r--r--tools/h5toh4/h5toh4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5toh4/h5toh4.c b/tools/h5toh4/h5toh4.c
index 4995c29..332d32f 100644
--- a/tools/h5toh4/h5toh4.c
+++ b/tools/h5toh4/h5toh4.c
@@ -627,8 +627,8 @@ convert_dataset (hid_t did, char *name, op_data_t *op_data) {
char *fieldname=NULL;
hid_t fieldtype;
int32 order;
- off_t offset;
- off_t offset_array[512];
+ size_t offset;
+ size_t offset_array[512];
hid_t h4type_array[512], memtype_array[512];
int32 order_array[512];
@@ -936,7 +936,7 @@ convert_dataset (hid_t did, char *name, op_data_t *op_data) {
DEBUG_PRINT("Error detected in %s() [%s line %d]\n", "convert_dataset", __FILE__, __LINE__);
break;
}
- if ((offset = H5Tget_offset(memtype_array[idx])) < 0 || offset >= 128 ) {
+ if ((int)(offset = H5Tget_offset(memtype_array[idx])) < 0 || offset >= 128 ) {
fprintf(stderr, "Error: H5Tget_offset() is returning a bad value %d\n",(int)offset);
DEBUG_PRINT("Error detected in %s() [%s line %d]\n", "convert_dataset", __FILE__, __LINE__);
return FAIL;