summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-13 15:54:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-13 15:54:58 (GMT)
commit6c0f70fb0b15d3086c2c9da5be8b8543ca912f60 (patch)
treed4b7cdffa9df10fb7bb9210ed9ba5d82e85deff7 /generic/tclDictObj.c
parent115a3559d776453b8c58512f151abb875de87f74 (diff)
parentf70e1f98b3e5235a48e0fbea21515ed7e277e6cd (diff)
downloadtcl-6c0f70fb0b15d3086c2c9da5be8b8543ca912f60.zip
tcl-6c0f70fb0b15d3086c2c9da5be8b8543ca912f60.tar.gz
tcl-6c0f70fb0b15d3086c2c9da5be8b8543ca912f60.tar.bz2
Merge 8.7
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 9fc2fa9..8002fd4 100644
--- a/generic/tclDictObj.c
+++ b/generic/tclDictObj.c
@@ -2217,8 +2217,9 @@ DictIncrCmd(
if (objc == 4) {
code = TclIncrObj(interp, valuePtr, objv[3]);
} else {
- Tcl_Obj *incrPtr = Tcl_NewWideIntObj(1);
+ Tcl_Obj *incrPtr;
+ TclNewIntObj(incrPtr, 1);
Tcl_IncrRefCount(incrPtr);
code = TclIncrObj(interp, valuePtr, incrPtr);
TclDecrRefCount(incrPtr);