diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-07-25 15:54:22 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-07-25 15:54:22 +0000 |
commit | e4b5f170cffd0d5e788d9090f8f2a9802fe267e9 (patch) | |
tree | 96369172e019fea9450bce7bc70b331a272eaa7a /sys/src/libc/port/memmove.c | |
parent | 8a8329ad952b0fced970cc0b83e5e87d4a5ceb7a (diff) |
libc: change usize to 64-bit for amd64 and arm64, make memory(2) functions use usize
Diffstat (limited to 'sys/src/libc/port/memmove.c')
-rw-r--r-- | sys/src/libc/port/memmove.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/src/libc/port/memmove.c b/sys/src/libc/port/memmove.c index 16ef43277..5d6f28419 100644 --- a/sys/src/libc/port/memmove.c +++ b/sys/src/libc/port/memmove.c @@ -2,12 +2,10 @@ #include <libc.h> void* -memmove(void *a1, void *a2, ulong n) +memmove(void *a1, void *a2, usize n) { char *s1, *s2; - if((long)n < 0) - abort(); s1 = a1; s2 = a2; if((s2 < s1) && (s2+n > s1)) @@ -29,7 +27,7 @@ back: } void* -memcpy(void *a1, void *a2, ulong n) +memcpy(void *a1, void *a2, usize n) { return memmove(a1, a2, n); } |