mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-19 21:43:27 +00:00
Fix warning on some compilers for size_t to int truncation
This commit is contained in:
parent
1c27912705
commit
ad6809817f
@ -378,7 +378,7 @@ 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, len = (int)strlen(buf);
|
||||
if (buf[len-1] == '\n') {
|
||||
buf[len-1] = 0;
|
||||
if (buf[len-2] == '\r') {
|
||||
|
Loading…
Reference in New Issue
Block a user