From 59ee35fd388827c8ca20bf08a63bd827a42519ec Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Wed, 2 Nov 2022 16:25:59 +0000 Subject: Fix testcase failure (assemble-15.9), only seen on 32-bit --- generic/tclUtil.c | 4 ++-- 1 file 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", -- cgit v0.12