summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-28 21:34:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-28 21:34:29 (GMT)
commitaf3406f86c40c78cff50cb5003b8be0eae448d54 (patch)
tree8c012550c364d8277f009fec2d98678544ae8d9b /generic/tclUtil.c
parent4247e597c6de977b80205b4c28784465ee05f941 (diff)
downloadtcl-af3406f86c40c78cff50cb5003b8be0eae448d54.zip
tcl-af3406f86c40c78cff50cb5003b8be0eae448d54.tar.gz
tcl-af3406f86c40c78cff50cb5003b8be0eae448d54.tar.bz2
New internal macro TclFetchIntRep, which is faster than Tcl_FetchIntRep.
But ... don't use this function when the result is only compared to NULL: that's just overkill.
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r--generic/tclUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index cf73a18..3d4298e 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -3945,7 +3945,7 @@ GetEndOffsetFromObj(
Tcl_ObjIntRep *irPtr;
Tcl_WideInt offset = 0; /* Offset in the "end-offset" expression */
- while ((irPtr = Tcl_FetchIntRep(objPtr, &endOffsetType)) == NULL) {
+ while ((irPtr = TclFetchIntRep(objPtr, &endOffsetType)) == NULL) {
Tcl_ObjIntRep ir;
int length;
const char *bytes = TclGetStringFromObj(objPtr, &length);