summaryrefslogtreecommitdiffstats
path: root/generic/tclLink.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-26 08:37:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-26 08:37:09 (GMT)
commit789ce0b97106ca8a3f91ab68ddaaf1fa904dcace (patch)
treedbfc9faeb241149d5f694a03985a4510813adf89 /generic/tclLink.c
parentbf32d5a0ab8f0030ffed9ba63186dbb3cdb02bdd (diff)
downloadtcl-789ce0b97106ca8a3f91ab68ddaaf1fa904dcace.zip
tcl-789ce0b97106ca8a3f91ab68ddaaf1fa904dcace.tar.gz
tcl-789ce0b97106ca8a3f91ab68ddaaf1fa904dcace.tar.bz2
More WIP
Diffstat (limited to 'generic/tclLink.c')
-rw-r--r--generic/tclLink.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/generic/tclLink.c b/generic/tclLink.c
index d637dbd..932ca5e 100644
--- a/generic/tclLink.c
+++ b/generic/tclLink.c
@@ -763,9 +763,8 @@ LinkTraceProc(
Tcl_WideInt valueWide;
Tcl_WideUInt valueUWide;
double valueDouble;
- int objc;
+ size_t objc, i;
Tcl_Obj **objv;
- int i;
/*
* If the variable is being unset, then just re-create it (with a trace)
@@ -947,8 +946,8 @@ LinkTraceProc(
*/
if (linkPtr->flags & LINK_ALLOC_LAST) {
- if (TclListObjGetElements_(NULL, (valueObj), &objc, &objv) == TCL_ERROR
- || (size_t)objc != linkPtr->numElems) {
+ if (Tcl_ListObjGetElements(NULL, (valueObj), &objc, &objv) == TCL_ERROR
+ || objc != linkPtr->numElems) {
return (char *) "wrong dimension";
}
}
@@ -956,7 +955,7 @@ LinkTraceProc(
switch (linkPtr->type) {
case TCL_LINK_INT:
if (linkPtr->flags & LINK_ALLOC_LAST) {
- for (i=0; i < objc; i++) {
+ for (i = 0; i < objc; i++) {
int *varPtr = &linkPtr->lastValue.iPtr[i];
if (GetInt(objv[i], varPtr)) {