diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2006-10-10 16:15:48 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2006-10-10 16:15:48 (GMT) |
commit | ace73331e77188941b8e884f9036765f9ca0f29d (patch) | |
tree | f1bcddbc972e58bbee4c18714c26252001ccbb46 | |
parent | 63da5db6215eec76e3de212da2382957f0b0a9de (diff) | |
download | tcl-ace73331e77188941b8e884f9036765f9ca0f29d.zip tcl-ace73331e77188941b8e884f9036765f9ca0f29d.tar.gz tcl-ace73331e77188941b8e884f9036765f9ca0f29d.tar.bz2 |
Silence GCC (cast is always safe; value is known to fit with wiggle room)
-rw-r--r-- | generic/tclBinary.c | 4 |
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); |