We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
memmove
1 parent 9b6c04e commit a4bdd08Copy full SHA for a4bdd08
utils/embedded-test-support/libc.c
@@ -81,7 +81,7 @@ int memcmp(const void *s1, const void *s2, size_t n) {
81
82
__attribute__((used))
83
void *memmove(void *dst, const void *src, size_t n) {
84
- if ((uintptr_t)dst > (uintptr_t)src) {
+ if ((uintptr_t)dst < (uintptr_t)src) {
85
for (int i = 0; i < n; i++) {
86
((char *)dst)[i] = ((char *)src)[i];
87
}
0 commit comments