diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-01 15:49:33 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-01 15:49:33 (GMT) |
commit | 6c9d67ac2ce6b610bb42688c03d6abf8e99f2a6b (patch) | |
tree | e0af1794b6829d3f838125af8b8c1f94632a35fc /generic/tkCanvas.c | |
parent | 88df780305133662dbb17971c05b9663a2b69f9d (diff) | |
download | tk-6c9d67ac2ce6b610bb42688c03d6abf8e99f2a6b.zip tk-6c9d67ac2ce6b610bb42688c03d6abf8e99f2a6b.tar.gz tk-6c9d67ac2ce6b610bb42688c03d6abf8e99f2a6b.tar.bz2 |
some more int -> size_t changes
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r-- | generic/tkCanvas.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index 6972b18..23d8e04 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -1242,14 +1242,15 @@ CanvasWidgetCmd( int isNew = 0; Tcl_HashEntry *entryPtr; const char *arg; - int length; + size_t length; if (objc < 3) { Tcl_WrongNumArgs(interp, 2, objv, "type coords ?arg ...?"); result = TCL_ERROR; goto done; } - arg = Tcl_GetStringFromObj(objv[2], &length); + arg = Tcl_GetString(objv[2]); + length = objv[2]->length; c = arg[0]; /* @@ -1261,7 +1262,7 @@ CanvasWidgetCmd( Tcl_MutexLock(&typeListMutex); for (typePtr = typeList; typePtr != NULL; typePtr = typePtr->nextPtr){ if ((c == typePtr->name[0]) - && (!strncmp(arg, typePtr->name, (unsigned)length))) { + && (!strncmp(arg, typePtr->name, length))) { if (matchPtr != NULL) { Tcl_MutexUnlock(&typeListMutex); goto badType; |