mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix handling of failed fp:read(..., "*n").
This commit is contained in:
parent
655401f3e9
commit
c7a3103f41
@ -140,6 +140,7 @@ static int io_file_readnum(lua_State *L, FILE *fp)
|
|||||||
setnumV(L->top++, d);
|
setnumV(L->top++, d);
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
|
setnilV(L->top++);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user