summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2009-12-11 23:42:41 (GMT)
committernijtmans <nijtmans@noemail.net>2009-12-11 23:42:41 (GMT)
commitc6a47ac52b1068df1ec80d15e784fb3c68f6de3c (patch)
tree10169e2ee80d03cd5dbe28b0398530a8356bea2e /unix/tclUnixCompat.c
parent1a2288ec551161b482f8cf0296029bfda99bdccf (diff)
downloadtcl-c6a47ac52b1068df1ec80d15e784fb3c68f6de3c.zip
tcl-c6a47ac52b1068df1ec80d15e784fb3c68f6de3c.tar.gz
tcl-c6a47ac52b1068df1ec80d15e784fb3c68f6de3c.tar.bz2
Fix gcc warning: signed and unsigned type in conditional expression
FossilOrigin-Name: 81f2a75d2f0f952142a0d5ad170dfd25aa3c6ef2
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r--unix/tclUnixCompat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c
index 727eaaf..28017dc 100644
--- a/unix/tclUnixCompat.c
+++ b/unix/tclUnixCompat.c
@@ -6,7 +6,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixCompat.c,v 1.17 2009/02/03 23:10:57 nijtmans Exp $
+ * RCS: @(#) $Id: tclUnixCompat.c,v 1.18 2009/12/11 23:42:41 nijtmans Exp $
*
*/
@@ -736,7 +736,7 @@ CopyArray(
p = buf + len;
for (j = 0; j < i; j++) {
- int sz = (elsize<0 ? strlen(src[j])+1 : elsize);
+ int sz = (elsize<0 ? (int) strlen(src[j]) + 1 : elsize);
len += sz;
if (len > buflen) {