mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-12 18:10:24 +08:00
forgot to check the case when HAVE_MEMMOVE is false
This commit is contained in:
parent
28bd09236b
commit
7a9802dc7c
2
cf
2
cf
@ -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"
|
||||
|
@ -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)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user