summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-19 22:11:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-19 22:11:01 (GMT)
commit588a92ec6b144cf320d0ba358f7ec078f16316ac (patch)
treed051414231041b44372910a4e781f3f1f94966a8 /generic/tclUtil.c
parenta0f11eae42f9260f584f97332464ac95c9713062 (diff)
parent6fa04d74e058900e8929c9cbb45c994145691d6b (diff)
downloadtcl-588a92ec6b144cf320d0ba358f7ec078f16316ac.zip
tcl-588a92ec6b144cf320d0ba358f7ec078f16316ac.tar.gz
tcl-588a92ec6b144cf320d0ba358f7ec078f16316ac.tar.bz2
Merge 8.5
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 a0f1fa0..96798bc 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -3616,7 +3616,7 @@ TclFormatInt(
* 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 {