diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-12-26 15:49:58 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-12-26 15:49:58 (GMT) |
commit | 8ccfc03af915aff29dabfe8ad8ba7b91162e7cb8 (patch) | |
tree | b0a2e48934e2337f52fe7d6096a50c6be368cbe1 /generic/tkCanvWind.c | |
parent | 1c2e80197e9d307739aa5760770364927b90533a (diff) | |
parent | e32ce30cb1c859429ad8bd32daa6a168ab60102b (diff) | |
download | tk-8ccfc03af915aff29dabfe8ad8ba7b91162e7cb8.zip tk-8ccfc03af915aff29dabfe8ad8ba7b91162e7cb8.tar.gz tk-8ccfc03af915aff29dabfe8ad8ba7b91162e7cb8.tar.bz2 |
Never use TCL_SIZE_MODIFIER "u", because Tcl_Size can be negative
Diffstat (limited to 'generic/tkCanvWind.c')
-rw-r--r-- | generic/tkCanvWind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkCanvWind.c b/generic/tkCanvWind.c index 050ba3e..8c61547 100644 --- a/generic/tkCanvWind.c +++ b/generic/tkCanvWind.c @@ -261,7 +261,7 @@ WinItemCoords( return TCL_ERROR; } else if (objc != 2) { Tcl_SetObjResult(interp, Tcl_ObjPrintf( - "wrong # coordinates: expected 2, got %" TCL_SIZE_MODIFIER "u", objc)); + "wrong # coordinates: expected 2, got %" TCL_SIZE_MODIFIER "d", objc)); Tcl_SetErrorCode(interp, "TK", "CANVAS", "COORDS", "WINDOW", NULL); return TCL_ERROR; @@ -275,7 +275,7 @@ WinItemCoords( ComputeWindowBbox(canvas, winItemPtr); } else { Tcl_SetObjResult(interp, Tcl_ObjPrintf( - "wrong # coordinates: expected 0 or 2, got %" TCL_SIZE_MODIFIER "u", objc)); + "wrong # coordinates: expected 0 or 2, got %" TCL_SIZE_MODIFIER "d", objc)); Tcl_SetErrorCode(interp, "TK", "CANVAS", "COORDS", "WINDOW", NULL); return TCL_ERROR; } |