From e6786566e7f23d604b5918c58b296937fb742bb4 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Sun, 31 Mar 2019 17:35:52 +0000 Subject: Fix gcc warning --- generic/tclTest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tclTest.c b/generic/tclTest.c index ff35754..e6c860e 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -3929,7 +3929,7 @@ TestregexpObjCmd( if (ii == TCL_INDEX_NONE) { TclRegExpRangeUniChar(regExpr, ii, &start, &end); - } else if (ii > info.nsubs) { + } else if (ii > (size_t)info.nsubs) { start = -1; end = -1; } else { @@ -3954,7 +3954,7 @@ TestregexpObjCmd( if (ii == TCL_INDEX_NONE) { TclRegExpRangeUniChar(regExpr, ii, &start, &end); newPtr = Tcl_GetRange(objPtr, start, end); - } else if (ii > info.nsubs) { + } else if (ii > (size_t)info.nsubs) { newPtr = Tcl_NewObj(); } else { newPtr = Tcl_GetRange(objPtr, info.matches[ii].start, -- cgit v0.12