summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-10-10 16:15:48 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-10-10 16:15:48 (GMT)
commitace73331e77188941b8e884f9036765f9ca0f29d (patch)
treef1bcddbc972e58bbee4c18714c26252001ccbb46 /generic
parent63da5db6215eec76e3de212da2382957f0b0a9de (diff)
downloadtcl-ace73331e77188941b8e884f9036765f9ca0f29d.zip
tcl-ace73331e77188941b8e884f9036765f9ca0f29d.tar.gz
tcl-ace73331e77188941b8e884f9036765f9ca0f29d.tar.bz2
Silence GCC (cast is always safe; value is known to fit with wiggle room)
Diffstat (limited to 'generic')
-rw-r--r--generic/tclBinary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index 9b7e53e..0c52995 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBinary.c,v 1.30 2006/10/06 13:37:21 patthoyts Exp $
+ * RCS: @(#) $Id: tclBinary.c,v 1.31 2006/10/10 16:15:48 dkf Exp $
*/
#include "tclInt.h"
@@ -1879,7 +1879,7 @@ ScanNumber(
*/
if ((flags & BINARY_UNSIGNED)) {
- return Tcl_NewWideIntObj((unsigned long)value);
+ return Tcl_NewWideIntObj((Tcl_WideInt)(unsigned long)value);
} else {
if ((value & (((unsigned int)1)<<31)) && (value > 0)) {
value -= (((unsigned int)1)<<31);