summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-12-12 00:10:45 (GMT)
committernijtmans <nijtmans>2009-12-12 00:10:45 (GMT)
commitfc9308dd3cf0417774a286b661eb4a9f8cb7299b (patch)
tree458594235dee78d51bd19b8e292ac6eab2647dd1
parent8feb7a6e081d55a9d7abfa75027bfbacebe664f0 (diff)
downloadtk-fc9308dd3cf0417774a286b661eb4a9f8cb7299b.zip
tk-fc9308dd3cf0417774a286b661eb4a9f8cb7299b.tar.gz
tk-fc9308dd3cf0417774a286b661eb4a9f8cb7299b.tar.bz2
Fix gcc warning, using gcc-4.3.4 on cygwin
warning: array subscript has type 'char'
-rw-r--r--ChangeLog2
-rw-r--r--generic/tkWindow.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ac37533..6af7198 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
* win/makefile.vc: Fix dependancies on ${TKSTUBLIB} when
TCL_USE_STATIC_PACKAGES is defined
+ * generic/tkWindow.c: Fix gcc warning, using gcc-4.3.4 on cygwin
+ warning: array subscript has type 'char'
2009-12-11 Donal K. Fellows <dkf@users.sf.net>
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index 962f356..c023507 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWindow.c,v 1.105 2009/09/04 09:55:17 dkf Exp $
+ * RCS: @(#) $Id: tkWindow.c,v 1.106 2009/12/12 00:10:45 nijtmans Exp $
*/
#include "tkInt.h"
@@ -3307,7 +3307,7 @@ Tk_PkgInitStubsCheck(
int count = 0;
while (*p) {
- count += !isdigit(*p++);
+ count += !isdigit(UCHAR(*p++));
}
if (count == 1) {
if (0 != strncmp(version, actualVersion, strlen(version))) {