mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-06 14:56:51 +08:00
[svn-r1114] Purpose:
Bug fix Problem: On Solaris2.5, once the library has been compilied with any type of optimization, a bus error comes up in the "dtypes" test. Solution: The problem appears to be in the compilers' version of memcpy() that is used when optimized. Apparently, the same optimization problem is not associated with the similar function memmove(). So, as a solution to this problem, memmove() is substituted in for memcpy(). Platform tested: Solaris2.5
This commit is contained in:
parent
9280cf8e04
commit
2925631a49
@ -305,7 +305,7 @@ static intn interface_initialize_g = 0;
|
||||
if (d_mv) priv->d_aligned += nelmts; \
|
||||
for (elmtno=0; elmtno<nelmts; elmtno++, DIR src, DIR dst) { \
|
||||
if (s_mv) { \
|
||||
HDmemcpy(&aligned, src, sizeof(ST)); \
|
||||
HDmemmove(&aligned, src, sizeof(ST)); \
|
||||
s = (ST*)&aligned; \
|
||||
} else { \
|
||||
s = src; \
|
||||
|
Loading…
Reference in New Issue
Block a user