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.
2 parents 8ab726c + a4bdd08 commit 0dc9711Copy full SHA for 0dc9711
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