summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-11 14:23:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-11 14:23:14 (GMT)
commit278837f261adb88e6a802f3ebaf63e232c12e77f (patch)
treeb6a9653503ead5496a456e1301cc2244c8fba4a0 /generic/tclCmdIL.c
parentd16f803f15be4e185b584faf662863362cfffe5c (diff)
downloadtcl-278837f261adb88e6a802f3ebaf63e232c12e77f.zip
tcl-278837f261adb88e6a802f3ebaf63e232c12e77f.tar.gz
tcl-278837f261adb88e6a802f3ebaf63e232c12e77f.tar.bz2
More usage for TclNewWideIntObjFromSize(), TCL_IO_FAILURE -> TCL_INDEX_NONE where appropriate
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r--generic/tclCmdIL.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index c88b4d2..7bad8b5 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -3835,7 +3835,7 @@ Tcl_LsearchObjCmd(
}
Tcl_SetObjResult(interp, itemPtr);
} else {
- Tcl_SetObjResult(interp, Tcl_NewWideIntObj(index));
+ Tcl_SetObjResult(interp, TclNewWideIntObjFromSize((size_t)index));
}
} else if (index < 0) {
/*