summaryrefslogtreecommitdiffstats
path: root/src/H5detect.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-06-26 02:10:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-06-26 02:10:33 (GMT)
commit2629b6e4d3dce7b13ff6ee8d9ae14b04bb4bc22c (patch)
treebebc3180d77b92c7d200a2770dbafa8f4663abe8 /src/H5detect.c
parentcb57304e9a603b9f7212e0c8c49ad7f85bca1e49 (diff)
downloadhdf5-2629b6e4d3dce7b13ff6ee8d9ae14b04bb4bc22c.zip
hdf5-2629b6e4d3dce7b13ff6ee8d9ae14b04bb4bc22c.tar.gz
hdf5-2629b6e4d3dce7b13ff6ee8d9ae14b04bb4bc22c.tar.bz2
[svn-r7109] Purpose:
Code cleanup Description: Clean up varios compiler warnings flagged by SGI compiler and gcc 3.3 Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
Diffstat (limited to 'src/H5detect.c')
-rw-r--r--src/H5detect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5detect.c b/src/H5detect.c
index f0895b1..a7be265 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -329,9 +329,9 @@ precision (detected_t *d)
/* word aligned. -QAK */ \
memset(_buf, 0xff, sizeof(TYPE)+align_g[NELMTS(align_g)-1]); \
if(INFO.perm[0]) /* Big-Endian */ \
- memcpy(_buf+align_g[_ano]+(INFO.size-((INFO.offset+INFO.precision)/8)),((char *)&_val)+(INFO.size-((INFO.offset+INFO.precision)/8)),(INFO.precision/8)); \
+ memcpy(_buf+align_g[_ano]+(INFO.size-((INFO.offset+INFO.precision)/8)),((char *)&_val)+(INFO.size-((INFO.offset+INFO.precision)/8)),(size_t)(INFO.precision/8)); \
else /* Little-Endian */ \
- memcpy(_buf+align_g[_ano]+(INFO.offset/8),((char *)&_val)+(INFO.offset/8),(INFO.precision/8)); \
+ memcpy(_buf+align_g[_ano]+(INFO.offset/8),((char *)&_val)+(INFO.offset/8),(size_t)(INFO.precision/8)); \
_val2 = *((TYPE*)(_buf+align_g[_ano])); \
if(_val!=_val2) \
longjmp(jbuf_g, 1); \