summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-01-06 21:35:21 (GMT)
committernijtmans <nijtmans>2010-01-06 21:35:21 (GMT)
commit0ca164f2c3f073eea996040b76aa89e44fe81e1a (patch)
treee6ad158e27cb4aae64737fd8c11326891a51ac7f /generic
parent6c429a0ad16df02718539a22c3e9f8d9b92df937 (diff)
downloadtcl-0ca164f2c3f073eea996040b76aa89e44fe81e1a.zip
tcl-0ca164f2c3f073eea996040b76aa89e44fe81e1a.tar.gz
tcl-0ca164f2c3f073eea996040b76aa89e44fe81e1a.tar.bz2
Various trivial fixes, discovered during CYGWIN porting attempt. All backported from trunk.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclCompExpr.c4
-rw-r--r--generic/tclPkg.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index f6ef042..6eda4d6 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.97 2008/02/28 20:40:24 dgp Exp $
+ * RCS: @(#) $Id: tclCompExpr.c,v 1.97.2.1 2010/01/06 21:35:25 nijtmans Exp $
*/
#include "tclInt.h"
@@ -752,7 +752,7 @@ ParseExpr(
&& (lastStart[2] <= '9')) {
const char *end = lastStart + 2;
Tcl_Obj* copy;
- while (isdigit(*end)) {
+ while (isdigit(UCHAR(*end))) {
end++;
}
copy = Tcl_NewStringObj(lastStart,
diff --git a/generic/tclPkg.c b/generic/tclPkg.c
index fe23fd2..08b2deb 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.34.2.1 2008/04/01 19:31:12 dgp Exp $
+ * RCS: @(#) $Id: tclPkg.c,v 1.34.2.2 2010/01/06 21:35:24 nijtmans Exp $
*
* TIP #268.
* Heavily rewritten to handle the extend version numbers, and extended
@@ -1864,7 +1864,7 @@ Tcl_PkgInitStubsCheck(
int count = 0;
while (*p) {
- count += !isdigit(*p++);
+ count += !isdigit(UCHAR(*p++));
}
if (count == 1) {
if (0 != strncmp(version, actualVersion, strlen(version))) {