summaryrefslogtreecommitdiffstats
path: root/generic/tclResult.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclResult.c')
-rw-r--r--generic/tclResult.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c
index c0467d7..6286070 100644
--- a/generic/tclResult.c
+++ b/generic/tclResult.c
@@ -1100,11 +1100,12 @@ Tcl_SetReturnOptions(
Tcl_Interp *interp,
Tcl_Obj *options)
{
- int objc, level, code;
+ size_t objc;
+ int level, code;
Tcl_Obj **objv, *mergedOpts;
Tcl_IncrRefCount(options);
- if (TCL_ERROR == TclListObjGetElements_(interp, options, &objc, &objv)
+ if (TCL_ERROR == Tcl_ListObjGetElements(interp, options, &objc, &objv)
|| (objc % 2)) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"expected dict but got \"%s\"", TclGetString(options)));