summaryrefslogtreecommitdiffstats
path: root/generic/tclLink.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-25 16:11:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-25 16:11:38 (GMT)
commitb816a585c00c97feca1b4516769ccf2769a58e02 (patch)
tree77a1bcad1ca6879eda9d8bfffc581640656aa39f /generic/tclLink.c
parentd6fedf785445439d2d54c58f3e9906b0d867cd88 (diff)
downloadtcl-b816a585c00c97feca1b4516769ccf2769a58e02.zip
tcl-b816a585c00c97feca1b4516769ccf2769a58e02.tar.gz
tcl-b816a585c00c97feca1b4516769ccf2769a58e02.tar.bz2
Tcl_NewDoubleObj -> TclNewDoubleObj and Tcl_NewWideIntObj -> TclNewIntObj (and similar). Gives more info when debugging
Diffstat (limited to 'generic/tclLink.c')
-rw-r--r--generic/tclLink.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tclLink.c b/generic/tclLink.c
index cd2c731..f478a00 100644
--- a/generic/tclLink.c
+++ b/generic/tclLink.c
@@ -1282,7 +1282,7 @@ ObjValue(
memcpy(linkPtr->lastValue.aryPtr, linkPtr->addr, linkPtr->bytes);
objv = (Tcl_Obj **)ckalloc(linkPtr->numElems * sizeof(Tcl_Obj *));
for (i=0; i < linkPtr->numElems; i++) {
- objv[i] = Tcl_NewDoubleObj(linkPtr->lastValue.dPtr[i]);
+ TclNewDoubleObj(objv[i], linkPtr->lastValue.dPtr[i]);
}
resultObj = Tcl_NewListObj(linkPtr->numElems, objv);
ckfree(objv);
@@ -1401,7 +1401,7 @@ ObjValue(
memcpy(linkPtr->lastValue.aryPtr, linkPtr->addr, linkPtr->bytes);
objv = (Tcl_Obj **)ckalloc(linkPtr->numElems * sizeof(Tcl_Obj *));
for (i=0; i < linkPtr->numElems; i++) {
- objv[i] = Tcl_NewDoubleObj(linkPtr->lastValue.fPtr[i]);
+ TclNewDoubleObj(objv[i], linkPtr->lastValue.fPtr[i]);
}
resultObj = Tcl_NewListObj(linkPtr->numElems, objv);
ckfree(objv);
@@ -1414,8 +1414,7 @@ ObjValue(
memcpy(linkPtr->lastValue.aryPtr, linkPtr->addr, linkPtr->bytes);
objv = (Tcl_Obj **)ckalloc(linkPtr->numElems * sizeof(Tcl_Obj *));
for (i=0; i < linkPtr->numElems; i++) {
- TclNewUIntObj(objv[i],
- linkPtr->lastValue.uwPtr[i]);
+ TclNewUIntObj(objv[i], linkPtr->lastValue.uwPtr[i]);
}
resultObj = Tcl_NewListObj(linkPtr->numElems, objv);
ckfree(objv);