From ace73331e77188941b8e884f9036765f9ca0f29d Mon Sep 17 00:00:00 2001 From: dkf Date: Tue, 10 Oct 2006 16:15:48 +0000 Subject: Silence GCC (cast is always safe; value is known to fit with wiggle room) --- generic/tclBinary.c | 4 ++-- 1 file 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); -- cgit v0.12