summaryrefslogtreecommitdiffstats
path: root/win/tclWinInit.c
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 /win/tclWinInit.c
parent86bb83baf9ae75b307c59da32d5f391baa5d3743 (diff)
downloadtcl-2e5d02410d31161822705b1b28f1743b8af402fc.zip
tcl-2e5d02410d31161822705b1b28f1743b8af402fc.tar.gz
tcl-2e5d02410d31161822705b1b28f1743b8af402fc.tar.bz2
Silenced a compiler warning about a type mismatch in AppendEnvironment
Diffstat (limited to 'win/tclWinInit.c')
-rw-r--r--win/tclWinInit.c4
1 files changed, 2 insertions, 2 deletions
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++;