summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2006-10-10 16:15:47 (GMT)
committerdkf <dkf@noemail.net>2006-10-10 16:15:47 (GMT)
commitfb63f63a762a2938bcd99875c91f987e67b3b705 (patch)
treef1bcddbc972e58bbee4c18714c26252001ccbb46 /generic/tclBinary.c
parentaa0ceecf32a3965cc330c4966acdce8399e2012d (diff)
downloadtcl-fb63f63a762a2938bcd99875c91f987e67b3b705.zip
tcl-fb63f63a762a2938bcd99875c91f987e67b3b705.tar.gz
tcl-fb63f63a762a2938bcd99875c91f987e67b3b705.tar.bz2
Silence GCC (cast is always safe; value is known to fit with wiggle room)
FossilOrigin-Name: ae8ab7ca23090945ecc6ebb138e4c1dfbbebb14d
Diffstat (limited to 'generic/tclBinary.c')
-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);