diff options
author | nijtmans <nijtmans> | 2009-12-11 22:52:08 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2009-12-11 22:52:08 (GMT) |
commit | 03861193914234b7689c01abc8e74ca8ec20d873 (patch) | |
tree | ada137c0e957c5d51b65241741fb0063109a9966 /generic | |
parent | aa95261cdb411081d54b92f009404f83954deec1 (diff) | |
download | tcl-03861193914234b7689c01abc8e74ca8ec20d873.zip tcl-03861193914234b7689c01abc8e74ca8ec20d873.tar.gz tcl-03861193914234b7689c01abc8e74ca8ec20d873.tar.bz2 |
Fix gcc warning, using gcc-4.3.4 on cygwin
warning: array subscript has type 'char'
win/makefile.vc Revert to version 1.203 [Bug #2912773]
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclBinary.c | 4 | ||||
-rw-r--r-- | generic/tclCompExpr.c | 4 | ||||
-rw-r--r-- | generic/tclPkg.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c index c360c8f..4c2d47e 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.56 2009/11/18 21:59:51 nijtmans Exp $ + * RCS: @(#) $Id: tclBinary.c,v 1.57 2009/12/11 22:52:09 nijtmans Exp $ */ #include "tclInt.h" @@ -2497,7 +2497,7 @@ BinaryDecodeUu( if (data < dataend) { d[i] = c = *data++; if (c < 33 || c > 96) { - if (strict || !isspace(c)) { + if (strict || !isspace(c & 255)) { goto badUu; } i--; diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c index 47c8671..2677c51 100644 --- a/generic/tclCompExpr.c +++ b/generic/tclCompExpr.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: tclCompExpr.c,v 1.100 2009/09/07 07:28:38 das Exp $ + * RCS: @(#) $Id: tclCompExpr.c,v 1.101 2009/12/11 22:52:09 nijtmans Exp $ */ #include "tclInt.h" @@ -752,7 +752,7 @@ ParseExpr( const char *end = lastStart + 2; Tcl_Obj *copy; - while (isdigit(*end)) { + while (isdigit(*end & 255)) { end++; } copy = Tcl_NewStringObj(lastStart, diff --git a/generic/tclPkg.c b/generic/tclPkg.c index 7bac7eb..3753445 100644 --- a/generic/tclPkg.c +++ b/generic/tclPkg.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: tclPkg.c,v 1.39 2009/02/10 22:49:49 nijtmans Exp $ + * RCS: @(#) $Id: tclPkg.c,v 1.40 2009/12/11 22:52:09 nijtmans Exp $ * * TIP #268. * Heavily rewritten to handle the extend version numbers, and extended @@ -1865,7 +1865,7 @@ Tcl_PkgInitStubsCheck( int count = 0; while (*p) { - count += !isdigit(*p++); + count += !isdigit(*p++ & 255); } if (count == 1) { if (0 != strncmp(version, actualVersion, strlen(version))) { |