summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r--generic/tclUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index f858bb4..874e2a5 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -3335,7 +3335,7 @@ TclFormatInt(buffer, n)
* Generate the characters of the result backwards in the buffer.
*/
- intVal = (n < 0 ? -n : n);
+ intVal = (n < 0 ? -(unsigned long)n : (unsigned long)n);
i = 0;
buffer[0] = '\0';
do {