summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2002-08-02 15:12:22 (GMT)
committerdgp <dgp@noemail.net>2002-08-02 15:12:22 (GMT)
commit6147b7973bbe1ba86efa03c7246d5ce465338a2d (patch)
tree27e8d2ec7dbdb0f6caed7d87eb3adcc594c672c5
parent4913a9a788c5b08b6c0c8e5c1b761f5795b34958 (diff)
downloadtk-6147b7973bbe1ba86efa03c7246d5ce465338a2d.zip
tk-6147b7973bbe1ba86efa03c7246d5ce465338a2d.tar.gz
tk-6147b7973bbe1ba86efa03c7246d5ce465338a2d.tar.bz2
different method of silencing compiler warning.
FossilOrigin-Name: cdf795b7aa20494bfa87eda6aefc190e59429be1
-rw-r--r--unix/tkUnixWm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c
index c18c2a2..a3cd0bf 100644
--- a/unix/tkUnixWm.c
+++ b/unix/tkUnixWm.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixWm.c,v 1.28 2002/08/02 03:18:07 dgp Exp $
+ * RCS: @(#) $Id: tkUnixWm.c,v 1.29 2002/08/02 15:12:23 dgp Exp $
*/
#include "tkPort.h"
@@ -983,7 +983,7 @@ Tk_WmObjCmd(clientData, interp, objc, objv)
WMOPT_STACKORDER, WMOPT_STATE, WMOPT_TITLE, WMOPT_TRANSIENT,
WMOPT_WITHDRAW };
int index;
- size_t length;
+ int length;
char *argv1;
TkWindow *winPtr;
TkDisplay *dispPtr = ((TkWindow *) tkwin)->dispPtr;
@@ -995,7 +995,7 @@ Tk_WmObjCmd(clientData, interp, objc, objv)
}
argv1 = Tcl_GetStringFromObj(objv[1], &length);
- if ((argv1[0] == 't') && (strncmp(argv1, "tracing", length) == 0)
+ if ((argv1[0] == 't') && (strncmp(argv1, "tracing", (size_t) length) == 0)
&& (length >= 3)) {
int wmTracing;
if ((objc != 2) && (objc != 3)) {