1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-09-20 05:53:24 +01:00

Merge pull request #199 from lioncash/cond

fusee-primary: Fix always false conditional in xmemmove
This commit is contained in:
hexkyz 2018-08-26 18:12:10 +01:00 committed by GitHub
commit 1cbbdb43d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ static void *xmemmove(void *dst, const void *src, size_t len)
for (size_t i = 0; i < len; i++) { for (size_t i = 0; i < len; i++) {
dst8[i] = src8[i]; dst8[i] = src8[i];
} }
} else if (src8 > dst8) { } else if (dst8 > src8) {
for (size_t i = len; len > 0; len--) for (size_t i = len; len > 0; len--)
dst8[i - 1] = src8[i - 1]; dst8[i - 1] = src8[i - 1];
} }