summaryrefslogtreecommitdiffstats
path: root/src/H5Zscaleoffset.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-01-07 03:51:07 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-01-07 03:51:07 (GMT)
commit7fc6a486b94dcd8eff19db8816d9ab3b0bbeb440 (patch)
treebb1374a8a5b0a03b36230e9a636e4e2bd1fa21ed /src/H5Zscaleoffset.c
parent327ea3a76678ed2f92b0eb72df36c1d02651c2be (diff)
downloadhdf5-7fc6a486b94dcd8eff19db8816d9ab3b0bbeb440.zip
hdf5-7fc6a486b94dcd8eff19db8816d9ab3b0bbeb440.tar.gz
hdf5-7fc6a486b94dcd8eff19db8816d9ab3b0bbeb440.tar.bz2
[svn-r13117] Description:
Clean up some warnings from Windows. Tested on: FreeBSD/32 6.1 (duty)
Diffstat (limited to 'src/H5Zscaleoffset.c')
-rw-r--r--src/H5Zscaleoffset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Zscaleoffset.c b/src/H5Zscaleoffset.c
index 2c55188..b561775 100644
--- a/src/H5Zscaleoffset.c
+++ b/src/H5Zscaleoffset.c
@@ -123,7 +123,7 @@ H5Z_class_t H5Z_SCALEOFFSET[1] = {{
*/ \
for(i = 0; i < sizeof(type); i++) \
((unsigned char *)&cd_values[H5Z_SCALEOFFSET_PARM_FILVAL])[i] = \
- (fill_val & ((type)0xff << i*8)) >> i*8; \
+ (unsigned char)((fill_val & ((type)0xff << i*8)) >> i*8); \
}
/* Set the fill value parameter in cd_values[] for unsigned integer type */
@@ -427,13 +427,13 @@ H5Z_class_t H5Z_SCALEOFFSET[1] = {{
{ \
if(sizeof(type)==sizeof(int)) \
for(i = 0; i < sizeof(int); i++) \
- ((unsigned char *)minval)[i] = (*(int *)&min & ((int)0xff << i*8)) >> i*8; \
+ ((unsigned char *)minval)[i] = (unsigned char)((*(int *)&min & ((int)0xff << i*8)) >> i*8); \
else if(sizeof(type)==sizeof(long)) \
for(i = 0; i < sizeof(long); i++) \
- ((unsigned char *)minval)[i] = (*(long *)&min & ((long)0xff << i*8)) >> i*8; \
+ ((unsigned char *)minval)[i] = (unsigned char)((*(long *)&min & ((long)0xff << i*8)) >> i*8); \
else if(sizeof(type)==sizeof(long_long)) \
for(i = 0; i < sizeof(long_long); i++) \
- ((unsigned char *)minval)[i] = (*(long_long *)&min & ((long_long)0xff << i*8)) >> i*8;\
+ ((unsigned char *)minval)[i] = (unsigned char)((*(long_long *)&min & ((long_long)0xff << i*8)) >> i*8);\
else \
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer dataype")\
}