summaryrefslogtreecommitdiff
path: root/lib/inttostr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/inttostr.c')
-rw-r--r--lib/inttostr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inttostr.c b/lib/inttostr.c
index c7c0d736a6..0b60a4d04f 100644
--- a/lib/inttostr.c
+++ b/lib/inttostr.c
@@ -37,7 +37,7 @@ inttostr (inttype i, char *buf)
if (i < 0)
{
do
- *--p = '0' - i % 10;
+ *--p = '0' - i % 10;
while ((i /= 10) != 0);
*--p = '-';
@@ -46,7 +46,7 @@ inttostr (inttype i, char *buf)
#endif
{
do
- *--p = '0' + i % 10;
+ *--p = '0' + i % 10;
while ((i /= 10) != 0);
}