diff options
Diffstat (limited to 'libs/libc/conv.c')
-rw-r--r-- | libs/libc/conv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libc/conv.c b/libs/libc/conv.c index bb68d7b..668069c 100644 --- a/libs/libc/conv.c +++ b/libs/libc/conv.c @@ -123,7 +123,7 @@ char *conv_base(int value, char *result, int base, int is_signed) return result; } - char *ptr = result, *ptr1 = result, tmp_char; + char *ptr = result, *ptr1 = result; int tmp_value; do { @@ -137,7 +137,7 @@ char *conv_base(int value, char *result, int base, int is_signed) *ptr++ = '-'; *ptr-- = '\0'; while (ptr1 < ptr) { - tmp_char = *ptr; + char tmp_char = *ptr; *ptr-- = *ptr1; *ptr1++ = tmp_char; } |