mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
Merge pull request #199 from lioncash/cond
fusee-primary: Fix always false conditional in xmemmove
This commit is contained in:
commit
1cbbdb43d3
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ static void *xmemmove(void *dst, const void *src, size_t len)
|
|||
for (size_t i = 0; i < len; i++) {
|
||||
dst8[i] = src8[i];
|
||||
}
|
||||
} else if (src8 > dst8) {
|
||||
} else if (dst8 > src8) {
|
||||
for (size_t i = len; len > 0; len--)
|
||||
dst8[i - 1] = src8[i - 1];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue