diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-03-12 21:28:06 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-03-12 21:28:06 (GMT) |
commit | 018f2364ed38ce6f7e210e440fc8954991a266a6 (patch) | |
tree | bf4efac890601caaea01e8edd4c3bb928b7a90bd /src | |
parent | 836eea4abafd270a532be0a2c521d81c8cd637cb (diff) | |
download | hdf5-018f2364ed38ce6f7e210e440fc8954991a266a6.zip hdf5-018f2364ed38ce6f7e210e440fc8954991a266a6.tar.gz hdf5-018f2364ed38ce6f7e210e440fc8954991a266a6.tar.bz2 |
Add void * --> char * back to HDmemcpy in HDF5 1.10 to fix dt_arith
test failures. Fixes HDFFV-11056.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5private.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h index 05b8cd8..515b15a 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -1120,7 +1120,10 @@ typedef off_t h5_stat_size_t; #define HDmemcmp(X,Y,Z) memcmp(X,Y,Z) #endif /* HDmemcmp */ #ifndef HDmemcpy - #define HDmemcpy(X,Y,Z) memcpy(X,Y,Z) + /* Casts to char pointers are necessary for some compilers (e.g. clang) + * and platforms, possibly due to alignment issues. + */ + #define HDmemcpy(X,Y,Z) memcpy((char*)(X),(const char*)(Y),Z) #endif /* HDmemcpy */ #ifndef HDmemmove #define HDmemmove(X,Y,Z) memmove((char*)(X),(const char*)(Y),Z) |