summaryrefslogtreecommitdiff
path: root/src/string_util.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-03-16 12:33:46 -0400
committerGitHub <noreply@github.com>2020-03-16 12:33:46 -0400
commitf8915246a77a4453135ac3a4e6a61c098d557451 (patch)
tree86e1c2ea6ab19994fbdcb6e86b59071bb6c7c0cc /src/string_util.c
parent2c7387951ba78349712d891ca71b55db4d0ec96e (diff)
parentdb3e992fc3de6a212752aa1a4148ee42414f2322 (diff)
Merge pull request #302 from PikalaxALT/pokemon_storage_system
Pokemon storage system
Diffstat (limited to 'src/string_util.c')
-rw-r--r--src/string_util.c6
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;