From d39298874a1bc2665f1af0712f4798f82b7067fe Mon Sep 17 00:00:00 2001 From: apnadkarni Date: Fri, 21 Apr 2023 10:07:08 +0000 Subject: Fix gcc warning about format specifier in error message --- generic/tclCmdIL.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c index c5a6616..dbc74bd 100644 --- a/generic/tclCmdIL.c +++ b/generic/tclCmdIL.c @@ -2940,7 +2940,7 @@ Tcl_LrepeatObjCmd( } if (elementCount < 0) { Tcl_SetObjResult(interp, Tcl_ObjPrintf( - "bad count \"%d\": must be integer >= 0", elementCount)); + "bad count \"%" TCL_SIZE_MODIFIER "d\": must be integer >= 0", elementCount)); Tcl_SetErrorCode(interp, "TCL", "OPERATION", "LREPEAT", "NEGARG", NULL); return TCL_ERROR; -- cgit v0.12