diff options
author | nijtmans <nijtmans> | 2009-12-11 23:42:41 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2009-12-11 23:42:41 (GMT) |
commit | d56846dd9104d99b6b8ce56fb27ab1a03bd5a627 (patch) | |
tree | 10169e2ee80d03cd5dbe28b0398530a8356bea2e | |
parent | e2e924c95a17b7e1ec1a1ea20713ff558fe3f4c8 (diff) | |
download | tcl-d56846dd9104d99b6b8ce56fb27ab1a03bd5a627.zip tcl-d56846dd9104d99b6b8ce56fb27ab1a03bd5a627.tar.gz tcl-d56846dd9104d99b6b8ce56fb27ab1a03bd5a627.tar.bz2 |
Fix gcc warning: signed and unsigned type in conditional expression
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | unix/tclUnixCompat.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -5,6 +5,8 @@ * generic/tclPkg.c * libtommath/bn_mp_read_radix.c * win/makefile.vc Revert to version 1.203 [Bug #2912773] + * unix/tclUnixCompat.c Fix gcc warning: signed and unsigned type + in conditional expression 2009-12-11 Donal K. Fellows <dkf@users.sf.net> 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) { |