]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix compiler warning.
authorMike Pall <mike>
Fri, 2 Jun 2023 09:36:24 +0000 (11:36 +0200)
committerMike Pall <mike>
Fri, 2 Jun 2023 09:36:24 +0000 (11:36 +0200)
Reported by Myriachan.

src/host/buildvm_lib.c

index 47195fd4ee333a1e58e7018df34d40142fbda8b8..99b8ad3fb9157115acd1036ab25cfde1dd49fe27 100644 (file)
@@ -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') {