aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim.c b/jim.c
index 1fc6794..a82b2e4 100644
--- a/jim.c
+++ b/jim.c
@@ -427,7 +427,7 @@ static int JimWideToString(char *buf, jim_wide wideValue)
if (wideValue < 0) {
buf[pos++] = '-';
- tmp[num++] = -(wideValue % 10);
+ tmp[num++] = abs(wideValue % 10);
wideValue /= -10;
}