aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/conv.c
diff options
context:
space:
mode:
authorMarvin Borner2021-05-15 22:36:21 +0200
committerMarvin Borner2021-05-15 22:36:21 +0200
commitdf5a8c5b32733ae5e2d872b1c7baa4311a9d2308 (patch)
tree460b35ad421bc74e75e942a35379621ba168c9ea /libs/libc/conv.c
parentf97343c268b0fc19bf93d509a019f3d13c7af5a4 (diff)
Strange fixes
I have no ideas halp
Diffstat (limited to 'libs/libc/conv.c')
-rw-r--r--libs/libc/conv.c4
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;
}