summaryrefslogtreecommitdiffstats
path: root/tools/h5toh4/h5toh4.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5toh4/h5toh4.c')
-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;