summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-15 18:55:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-15 18:55:40 (GMT)
commit2c6df21a22544260bc790e12db7c701c7653d376 (patch)
tree3ca1975f0f5ea52919dd11f5f9b3d7a2695cbbdb /generic/ttk
parentfe2b267ee9d5dff5839a3d018e8a200c2dd368ba (diff)
downloadtk-2c6df21a22544260bc790e12db7c701c7653d376.zip
tk-2c6df21a22544260bc790e12db7c701c7653d376.tar.gz
tk-2c6df21a22544260bc790e12db7c701c7653d376.tar.bz2
Use more size_t internally, comparable with TIP #494 but then in Tk. Eliminate unnecessary type casts
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkTheme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/ttk/ttkTheme.c b/generic/ttk/ttkTheme.c
index 342b16a..595effd 100644
--- a/generic/ttk/ttkTheme.c
+++ b/generic/ttk/ttkTheme.c
@@ -142,7 +142,7 @@ static const Tk_OptionSpec *TTKGetOptionSpec(
/* Make sure widget option has a Tcl_Obj* entry:
*/
- if (optionSpec->objOffset < 0) {
+ if (optionSpec->objOffset == TCL_AUTO_LENGTH) {
return 0;
}