summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2004-07-08 16:53:54 (GMT)
committerKevin B Kenny <kennykb@acm.org>2004-07-08 16:53:54 (GMT)
commit2e5d02410d31161822705b1b28f1743b8af402fc (patch)
tree56d791e6f62a1ceba38d0d810440b484a38a6cbe
parent86bb83baf9ae75b307c59da32d5f391baa5d3743 (diff)
downloadtcl-2e5d02410d31161822705b1b28f1743b8af402fc.zip
tcl-2e5d02410d31161822705b1b28f1743b8af402fc.tar.gz
tcl-2e5d02410d31161822705b1b28f1743b8af402fc.tar.bz2
Silenced a compiler warning about a type mismatch in AppendEnvironment
-rw-r--r--ChangeLog5
-rw-r--r--win/tclWinInit.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 59da0e8..45c28b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-08 Kevin Kenny <kennykb@acm.org>
+
+ * win/tclWinInit.c (AppendEnvironment): Silenced a compilation
+ warning about a type mismatch.
+
2004-07-07 Miguel Sofer <msofer@users.sf.net>
* generic/tclCompile.c (TclCompileScript): fix for [Bug 458361].
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index 19022ba..2fc4fc1 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -7,7 +7,7 @@
* Copyright (c) 1998-1999 by Scriptics Corporation.
* All rights reserved.
*
- * RCS: @(#) $Id: tclWinInit.c,v 1.60 2004/07/08 08:06:50 dkf Exp $
+ * RCS: @(#) $Id: tclWinInit.c,v 1.61 2004/07/08 16:53:54 kennykb Exp $
*/
#include "tclWinInt.h"
@@ -527,7 +527,7 @@ AppendEnvironment(
*/
for (shortlib = (char *) &lib[strlen(lib)-1]; shortlib>lib ; shortlib--) {
if (*shortlib == '/') {
- if (shortlib - lib == strlen(lib) - 1) {
+ if ((unsigned)(shortlib - lib) == strlen(lib) - 1) {
Tcl_Panic("last character in lib cannot be '/'");
}
shortlib++;