From: Mike Pall Date: Fri, 2 Jun 2023 09:36:24 +0000 (+0200) Subject: Fix compiler warning. X-Git-Tag: v2.1.ROLLING~23^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c20c3b1a379f3f8ea34d9a13d3414bce8827e71;p=thirdparty%2FLuaJIT.git Fix compiler warning. Reported by Myriachan. --- diff --git a/src/host/buildvm_lib.c b/src/host/buildvm_lib.c index 47195fd4..99b8ad3f 100644 --- a/src/host/buildvm_lib.c +++ b/src/host/buildvm_lib.c @@ -319,7 +319,8 @@ void emit_lib(BuildCtx *ctx) char *p; /* Simplistic pre-processor. Only handles top-level #if/#endif. */ if (buf[0] == '#' && buf[1] == 'i' && buf[2] == 'f') { - int ok = 1, len = strlen(buf); + int ok = 1; + size_t len = strlen(buf); if (buf[len-1] == '\n') { buf[len-1] = 0; if (buf[len-2] == '\r') {