diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-13 19:21:41 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-13 19:21:41 (GMT) |
commit | 9bc89569d6990a1ebbe8fa595a23d5df59575c7f (patch) | |
tree | 68f37a5fbec8709187c2b4fe9521d0ce8434388b /fortran/src/H5f90kit.c | |
parent | ed23cda102d6c9312d863d4a2b5b2b0ec12f7224 (diff) | |
download | hdf5-9bc89569d6990a1ebbe8fa595a23d5df59575c7f.zip hdf5-9bc89569d6990a1ebbe8fa595a23d5df59575c7f.tar.gz hdf5-9bc89569d6990a1ebbe8fa595a23d5df59575c7f.tar.bz2 |
[svn-r7611] Purpose:
Code cleanup
Description:
Cleaned up various compiler warnings
Platforms tested:
FreeBSD 4.9 (sleipnir)
Linux 2.4 (verbena) w/FORTRAN
too minor for h5committest
Diffstat (limited to 'fortran/src/H5f90kit.c')
-rw-r--r-- | fortran/src/H5f90kit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fortran/src/H5f90kit.c b/fortran/src/H5f90kit.c index 0f8fed4..5ea1bb6 100644 --- a/fortran/src/H5f90kit.c +++ b/fortran/src/H5f90kit.c @@ -78,10 +78,10 @@ HD5f2cstring(_fcd fdesc, int len) /* This should be equivalent to the above test -QAK */ for(i=len-1; i>=0 && !isgraph((int)str[i]); i--) /*EMPTY*/; - cstr = (char *) HDmalloc( (i + 2)); + cstr = (char *) HDmalloc( (size_t)(i + 2)); if (cstr == NULL) return NULL; cstr[i + 1] = '\0'; - HDmemcpy(cstr,str,i+1); + HDmemcpy(cstr,str,(size_t)(i+1)); return cstr; } /* HD5f2cstring */ |