summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-12 20:32:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-12 20:32:05 (GMT)
commitf14346f41e7d066d72062435f39c621fd7b026c1 (patch)
treef0dd3d34c50b214137f26c296ab39127fc2fe032 /generic/ttk
parent6f7b389dd93395bc77e91a3bb5680aedf5d61a4c (diff)
downloadtk-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.c2
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) {