From bccb762e9f9b276276edd60404a23540c6dbeb12 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 26 Aug 2008 09:44:44 -0700 Subject: [PATCH] Correctly cast strlen() for %*s width argument. We had fixed many of these warning before, but I missed this one since this file was not part of the distribution when we fixed the other cases. --- vpi/sys_clog2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpi/sys_clog2.c b/vpi/sys_clog2.c index 043e44fd0..9d30f60a5 100644 --- a/vpi/sys_clog2.c +++ b/vpi/sys_clog2.c @@ -63,7 +63,7 @@ static PLI_INT32 sys_clog2_compiletf(PLI_BYTE8 *name) vpi_printf("%s $clog2 takes at most one argument.\n", msg); vpi_printf("%*s Found %u extra argument%s.\n", - strlen(msg), " ", argc, argc == 1 ? "" : "s"); + (int) strlen(msg), " ", argc, argc == 1 ? "" : "s"); vpi_control(vpiFinish, 1); }