summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-13 14:59:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-13 14:59:43 (GMT)
commit3fc1392c92078e35e6a35efc90ce598c1c2fc192 (patch)
tree5b6f3de70fca08f3638540445bd5f25b522f87b6 /generic/tclDictObj.c
parent81e7623b785648f4b7c7ffdd8f1647c876bd4c45 (diff)
downloadtcl-3fc1392c92078e35e6a35efc90ce598c1c2fc192.zip
tcl-3fc1392c92078e35e6a35efc90ce598c1c2fc192.tar.gz
tcl-3fc1392c92078e35e6a35efc90ce598c1c2fc192.tar.bz2
More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in stead of Tcl_NewIntObj()
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r--generic/tclDictObj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c
index a42c123..becc029 100644
--- a/generic/tclDictObj.c
+++ b/generic/tclDictObj.c
@@ -2142,8 +2142,9 @@ DictIncrCmd(
if (objc == 4) {
code = TclIncrObj(interp, valuePtr, objv[3]);
} else {
- Tcl_Obj *incrPtr = Tcl_NewIntObj(1);
+ Tcl_Obj *incrPtr;
+ TclNewIntObj(incrPtr, 1);
Tcl_IncrRefCount(incrPtr);
code = TclIncrObj(interp, valuePtr, incrPtr);
TclDecrRefCount(incrPtr);