forgot to check the case when HAVE_MEMMOVE is false

This commit is contained in:
Dennis Heimbigner 2012-03-28 17:46:25 +00:00
parent 28bd09236b
commit 7a9802dc7c
2 changed files with 6 additions and 6 deletions

2
cf
View File

@ -126,7 +126,7 @@ FLAGS="$FLAGS --disable-pnetcdf"
#FLAGS="$FLAGS --enable-ffio"
#FLAGS="$FLAGS --enable-benchmarks"
#FLAGS="$FLAGS --enable-extra-tests"
FLAGS="$FLAGS --enable-large-file-tests"
#FLAGS="$FLAGS --enable-large-file-tests"
FLAGS="$FLAGS --enable-logging"
FLAGS="$FLAGS --disable-shared"

View File

@ -405,8 +405,8 @@ memio_move(ncio* const nciop, off_t to, off_t from, size_t nbytes, int ignored)
nbytes1 = (nbytes - overlap); /* # bytes of non-overlap */
/* move the non-overlapping part */
memcpy((void*)(memio->memory+(to+overlap)),
(void*)(memio->memory+(from+overlap),
nbytes1)
(void*)(memio->memory+(from+overlap)),
nbytes1);
/* move the overlapping part */
memcpy((void*)(memio->memory+to),
(void*)(memio->memory+from),
@ -415,9 +415,9 @@ memio_move(ncio* const nciop, off_t to, off_t from, size_t nbytes, int ignored)
overlap = ((to + nbytes) - from); /* # bytes of overlap */
nbytes1 = (nbytes - overlap); /* # bytes of non-overlap */
/* move the non-overlapping part */
memcpy((void*)(memio->memory+to,
(void*)(memio->memory+from,
nbytes1)
memcpy((void*)(memio->memory+to),
(void*)(memio->memory+from),
nbytes1);
/* move the overlapping part */
memcpy((void*)(memio->memory+(to+nbytes1)),
(void*)(memio->memory+(from+nbytes1)),