summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordas <das>2006-07-20 06:17:38 (GMT)
committerdas <das>2006-07-20 06:17:38 (GMT)
commitf2a1ea5dbae4b3440723227e75a0c9da1d88ff93 (patch)
treeb705c8427d769d47111756d48dc62a7053128fac /generic/tclExecute.c
parent475cf649d6dfe709736b11ba805cba2827753363 (diff)
downloadtcl-f2a1ea5dbae4b3440723227e75a0c9da1d88ff93.zip
tcl-f2a1ea5dbae4b3440723227e75a0c9da1d88ff93.tar.gz
tcl-f2a1ea5dbae4b3440723227e75a0c9da1d88ff93.tar.bz2
* generic/regc_locale.c (cclass):
* generic/tclExecute.c (TclExecuteByteCode): * generic/tclIOCmd.c (Tcl_ExecObjCmd): * generic/tclListObj.c (NewListIntRep): * generic/tclObj.c (Tcl_GetLongFromObj, Tcl_GetWideIntFromObj, FreeBignum, Tcl_SetBignumObj): * generic/tclParseExpr.c (Tcl_ParseExpr): * generic/tclStrToD.c (TclParseNumber): * generic/tclStringObj.c (TclAppendFormattedObjs): * unix/tclUnixPipe.c (TclpCreateProcess): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 917f0ac..96677f9 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.237 2006/06/21 03:10:38 dgp Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.238 2006/07/20 06:17:38 das Exp $
*/
#include "tclInt.h"
@@ -3939,7 +3939,7 @@ TclExecuteByteCode(
}
/* Handle shifts within the native long range */
TRACE(("%s %s => ", O2S(valuePtr), O2S(value2Ptr)));
- if ((type1 == TCL_NUMBER_LONG) && (shift < CHAR_BIT*sizeof(long))
+ if ((type1 == TCL_NUMBER_LONG) && ((size_t)shift < CHAR_BIT*sizeof(long))
&& (l1 = *((CONST long *)ptr1))
&& !(((l1>0) ? l1 : ~l1)
& -(1<<(CHAR_BIT*sizeof(long)-1-shift)))) {
@@ -3951,7 +3951,7 @@ TclExecuteByteCode(
/* Handle shifts within the native wide range */
TRACE(("%s %s => ", O2S(valuePtr), O2S(value2Ptr)));
if ((type1 != TCL_NUMBER_BIG)
- && (shift < CHAR_BIT*sizeof(Tcl_WideInt))) {
+ && ((size_t)shift < CHAR_BIT*sizeof(Tcl_WideInt))) {
Tcl_WideInt w;
TclGetWideIntFromObj(NULL, valuePtr, &w);
@@ -4007,7 +4007,7 @@ TclExecuteByteCode(
/* Handle shifts within the native long range */
if (type1 == TCL_NUMBER_LONG) {
l1 = *((CONST long *)ptr1);
- if (shift >= CHAR_BIT*sizeof(long)) {
+ if ((size_t)shift >= CHAR_BIT*sizeof(long)) {
if (l1 >= (long)0) {
objResultPtr = eePtr->constants[0];
} else {
@@ -4023,7 +4023,7 @@ TclExecuteByteCode(
/* Handle shifts within the native wide range */
if (type1 == TCL_NUMBER_WIDE) {
Tcl_WideInt w = *((CONST Tcl_WideInt *)ptr1);
- if (shift >= CHAR_BIT*sizeof(Tcl_WideInt)) {
+ if ((size_t)shift >= CHAR_BIT*sizeof(Tcl_WideInt)) {
if (w >= (Tcl_WideInt)0) {
objResultPtr = eePtr->constants[0];
} else {