diff options
Diffstat (limited to 'arch/x86/lib/memcpy_32.c')
-rw-r--r-- | arch/x86/lib/memcpy_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/memcpy_32.c b/arch/x86/lib/memcpy_32.c index 8ac51b82a632..37756b6fb329 100644 --- a/arch/x86/lib/memcpy_32.c +++ b/arch/x86/lib/memcpy_32.c | |||
@@ -34,8 +34,8 @@ void *memmove(void *dest, const void *src, size_t n) | |||
34 | "cld" | 34 | "cld" |
35 | : "=&c" (d0), "=&S" (d1), "=&D" (d2) | 35 | : "=&c" (d0), "=&S" (d1), "=&D" (d2) |
36 | :"0" (n), | 36 | :"0" (n), |
37 | "1" (n-1+(const char *)src), | 37 | "1" (n-1+src), |
38 | "2" (n-1+(char *)dest) | 38 | "2" (n-1+dest) |
39 | :"memory"); | 39 | :"memory"); |
40 | } | 40 | } |
41 | return dest; | 41 | return dest; |