summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-12-11 23:10:47 (GMT)
committernijtmans <nijtmans>2009-12-11 23:10:47 (GMT)
commitace579190b2305205d8a0000aaa0b2759b28e594 (patch)
tree5bf05c10694ebb7050e255e2f663f3936776582d
parent03861193914234b7689c01abc8e74ca8ec20d873 (diff)
downloadtcl-ace579190b2305205d8a0000aaa0b2759b28e594.zip
tcl-ace579190b2305205d8a0000aaa0b2759b28e594.tar.gz
tcl-ace579190b2305205d8a0000aaa0b2759b28e594.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]
-rw-r--r--generic/tclBinary.c4
-rw-r--r--generic/tclCompExpr.c4
-rw-r--r--generic/tclPkg.c4
-rw-r--r--libtommath/bn_mp_read_radix.c6
4 files changed, 9 insertions, 9 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index 4c2d47e..75b3ca2 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.57 2009/12/11 22:52:09 nijtmans Exp $
+ * RCS: @(#) $Id: tclBinary.c,v 1.58 2009/12/11 23:10:47 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 & 255)) {
+ if (strict || !isspace(UCHAR(c))) {
goto badUu;
}
i--;
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index 2677c51..306bf78 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.101 2009/12/11 22:52:09 nijtmans Exp $
+ * RCS: @(#) $Id: tclCompExpr.c,v 1.102 2009/12/11 23:10:47 nijtmans Exp $
*/
#include "tclInt.h"
@@ -752,7 +752,7 @@ ParseExpr(
const char *end = lastStart + 2;
Tcl_Obj *copy;
- while (isdigit(*end & 255)) {
+ while (isdigit(UCHAR(*end))) {
end++;
}
copy = Tcl_NewStringObj(lastStart,
diff --git a/generic/tclPkg.c b/generic/tclPkg.c
index 3753445..d26c630 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.40 2009/12/11 22:52:09 nijtmans Exp $
+ * RCS: @(#) $Id: tclPkg.c,v 1.41 2009/12/11 23:10:47 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++ & 255);
+ count += !isdigit(UCHAR(*p++));
}
if (count == 1) {
if (0 != strncmp(version, actualVersion, strlen(version))) {
diff --git a/libtommath/bn_mp_read_radix.c b/libtommath/bn_mp_read_radix.c
index 37d902d..9387bc1 100644
--- a/libtommath/bn_mp_read_radix.c
+++ b/libtommath/bn_mp_read_radix.c
@@ -48,7 +48,7 @@ int mp_read_radix (mp_int * a, const char *str, int radix)
* this allows numbers like 1AB and 1ab to represent the same value
* [e.g. in hex]
*/
- ch = (char) ((radix < 36) ? toupper (*str & 255) : *str);
+ ch = (char) ((radix < 36) ? toupper ((unsigned char) *str) : *str);
for (y = 0; y < 64; y++) {
if (ch == mp_s_rmap[y]) {
break;
@@ -89,6 +89,6 @@ int mp_read_radix (mp_int * a, const char *str, int radix)
/* $Source: /root/tcl/repos-to-convert/tcl/libtommath/bn_mp_read_radix.c,v $ */
/* Tom's revision is 1.4. */
-/* $Revision: 1.6 $ */
-/* $Date: 2009/12/11 22:52:09 $ */
+/* $Revision: 1.7 $ */
+/* $Date: 2009/12/11 23:10:47 $ */