diff options
author | kmu <kmu@hdfgroup.org> | 2019-12-04 02:52:55 (GMT) |
---|---|---|
committer | kmu <kmu@hdfgroup.org> | 2019-12-04 02:52:55 (GMT) |
commit | 132fa33dad6badacec90e80768d8dc8e8aa33172 (patch) | |
tree | b296c329b62c9152fce3ca228c121a8cdf55d0c8 /tools/test/h5ls/dynlib_ls.c | |
parent | ea0759d047dc6421da90375a9c27f7cde0a8e117 (diff) | |
download | hdf5-132fa33dad6badacec90e80768d8dc8e8aa33172.zip hdf5-132fa33dad6badacec90e80768d8dc8e8aa33172.tar.gz hdf5-132fa33dad6badacec90e80768d8dc8e8aa33172.tar.bz2 |
fix intel compile warnings
Diffstat (limited to 'tools/test/h5ls/dynlib_ls.c')
-rw-r--r-- | tools/test/h5ls/dynlib_ls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/test/h5ls/dynlib_ls.c b/tools/test/h5ls/dynlib_ls.c index 571452e..ceff5e1 100644 --- a/tools/test/h5ls/dynlib_ls.c +++ b/tools/test/h5ls/dynlib_ls.c @@ -16,6 +16,7 @@ #include <stdlib.h> #include <stdio.h> #include "H5PLextern.h" +#include "H5private.h" #define H5Z_FILTER_DYNLIBUD 300 #define MULTIPLIER 3 @@ -69,7 +70,7 @@ H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts, /* Subtract the original value with MULTIPLIER */ while(buf_left > 0) { char temp = *int_ptr; - *int_ptr = temp - MULTIPLIER; + H5_CHECKED_ASSIGN(*int_ptr, int8_t, temp - MULTIPLIER, int); int_ptr++; buf_left -= sizeof(*int_ptr); } /* end while */ @@ -78,7 +79,7 @@ H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts, /* Add the original value with MULTIPLIER */ while(buf_left > 0) { char temp = *int_ptr; - *int_ptr = temp + MULTIPLIER; + H5_CHECKED_ASSIGN(*int_ptr, int8_t, temp + MULTIPLIER, int); int_ptr++; buf_left -= sizeof(*int_ptr); } /* end while */ |