diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1999-09-24 18:14:25 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1999-09-24 18:14:25 (GMT) |
commit | 1f24212ef6e300931814e8c42e7d36800ce78762 (patch) | |
tree | 88d493f6a7cf7370f507f9bf10691aa00f9a3635 /src | |
parent | 5b7ec7e586e327d5013f26e08deea690cf7b105e (diff) | |
download | hdf5-1f24212ef6e300931814e8c42e7d36800ce78762.zip hdf5-1f24212ef6e300931814e8c42e7d36800ce78762.tar.gz hdf5-1f24212ef6e300931814e8c42e7d36800ce78762.tar.bz2 |
[svn-r1649] Tweaks for J90 port.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Tconv.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c index eaf930d..185cd82 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -265,8 +265,8 @@ static intn interface_initialize_g = 0; /* The first part of every integer hardware conversion macro */ #define CI_BEGIN(STYPE,DTYPE,ST,DT,STRT) { \ size_t elmtno; /*element number */ \ - uint8_t *src, *s; /*source buffer */ \ - uint8_t *dst, *d; /*destination buffer */ \ + void *src, *s; /*source buffer */ \ + void *dst, *d; /*destination buffer */ \ H5T_t *st, *dt; /*data type descriptors */ \ long_long aligned; /*largest integer type, aligned */ \ hbool_t s_mv, d_mv; /*move data to align it? */ \ @@ -348,8 +348,8 @@ static intn interface_initialize_g = 0; if (d_mv) HDmemcpy(dst, &aligned, dt_size); \ \ /* Advance pointers */ \ - src += direction * s_stride; \ - dst += direction * d_stride; \ + src = (char *)src + direction * s_stride; \ + dst = (char *)dst + direction * d_stride; \ } \ break; \ \ @@ -3477,9 +3477,7 @@ H5T_conv_short_schar(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts, size_t stride, void *buf, void UNUSED *bkg, hid_t UNUSED dset_xfer_plist) { FUNC_ENTER(H5T_conv_short_schar, FAIL); - H5T_CONV_Ss(SHORT, SCHAR, - short, signed char, - SCHAR_MIN, SCHAR_MAX); + H5T_CONV_Ss(SHORT, SCHAR, short, signed char, SCHAR_MIN, SCHAR_MAX); FUNC_LEAVE(SUCCEED); } |