diff options
-rw-r--r-- | jim.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |