summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-02 16:25:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-02 16:25:59 (GMT)
commit59ee35fd388827c8ca20bf08a63bd827a42519ec (patch)
tree2cb51c0033a3fdaffc83afe2ab9351162658f967
parent330034ec028701d182ab255424084a9a5a9b5499 (diff)
downloadtcl-59ee35fd388827c8ca20bf08a63bd827a42519ec.zip
tcl-59ee35fd388827c8ca20bf08a63bd827a42519ec.tar.gz
tcl-59ee35fd388827c8ca20bf08a63bd827a42519ec.tar.bz2
Fix testcase failure (assemble-15.9), only seen on 32-bit
-rw-r--r--generic/tclUtil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 577c45a..92dac30 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -3751,8 +3751,8 @@ TclIndexEncode(
* We parsed an end+offset index value.
* wide holds the offset value in the range WIDE_MIN...WIDE_MAX.
*/
- if (irPtr ? ((wide < INT_MIN) && ((size_t)-wide <= LIST_MAX))
- : ((wide > INT_MAX) && ((size_t)wide <= LIST_MAX))) {
+ if ((irPtr ? ((wide < INT_MIN) && ((size_t)-wide <= LIST_MAX))
+ : ((wide > INT_MAX) && ((size_t)wide <= LIST_MAX))) && (sizeof(int) != sizeof(size_t))) {
if (interp) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"index \"%s\" out of range",