diff options
Diffstat (limited to 'src/H5Tconv.c')
-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); } |