diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-02-12 20:32:05 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-02-12 20:32:05 (GMT) |
commit | f14346f41e7d066d72062435f39c621fd7b026c1 (patch) | |
tree | f0dd3d34c50b214137f26c296ab39127fc2fe032 /generic/ttk | |
parent | 6f7b389dd93395bc77e91a3bb5680aedf5d61a4c (diff) | |
download | tk-f14346f41e7d066d72062435f39c621fd7b026c1.zip tk-f14346f41e7d066d72062435f39c621fd7b026c1.tar.gz tk-f14346f41e7d066d72062435f39c621fd7b026c1.tar.bz2 |
Use (more efficient) Tcl_GetIntFromObj() in stead of Tcl_GetInt() in a few places where it makes sense.
Diffstat (limited to 'generic/ttk')
-rw-r--r-- | generic/ttk/ttkEntry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c index 352c53a..44e45de 100644 --- a/generic/ttk/ttkEntry.c +++ b/generic/ttk/ttkEntry.c @@ -1382,7 +1382,7 @@ EntryIndex( *indexPtr += 1; } } else { - if (Tcl_GetInt(interp, string, indexPtr) != TCL_OK) { + if (Tcl_GetIntFromObj(interp, indexObj, indexPtr) != TCL_OK) { goto badIndex; } if (*indexPtr < 0) { |