diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-03-11 13:32:30 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-03-11 13:32:30 -0400 |
commit | 3aeb294572174d1f927286d507d15cda04e58601 (patch) | |
tree | 05df00aa454eb4d3f15df49145b6266a37428006 /src/string_util.c | |
parent | d2b0f36b7daa93d0708f19db347ad2befe2a4f07 (diff) |
Port pokemon_storage_2 from emerald
Diffstat (limited to 'src/string_util.c')
-rw-r--r-- | src/string_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/string_util.c b/src/string_util.c index 4c1106df8..0a2365d25 100644 --- a/src/string_util.c +++ b/src/string_util.c @@ -532,11 +532,11 @@ u8 *StringFillWithTerminator(u8 *dest, u16 n) return StringFill(dest, EOS, n); } -u8 *StringCopyN_Multibyte(u8 *dest, u8 *src, u32 n) +u8 *StringCopyN_Multibyte(u8 *dest, const u8 *src, u32 n) { u32 i; - for (i = n - 1; i != (u32)-1; i--) + for (i = n - 1; i != -1u; i--) { if (*src == EOS) { @@ -554,7 +554,7 @@ u8 *StringCopyN_Multibyte(u8 *dest, u8 *src, u32 n) return dest; } -u32 StringLength_Multibyte(u8 *str) +u32 StringLength_Multibyte(const u8 *str) { u32 length = 0; |