summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 24e2a11..7154898 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -3634,7 +3634,7 @@ TclFormatInt(
* Generate the characters of the result backwards in the buffer.
*/
- intVal = (n < 0 ? -n : n);
+ intVal = (n < 0 ? -(Tcl_WideUInt)n : (Tcl_WideUInt)n);
i = 0;
buffer[0] = '\0';
do {