mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 09:24:07 +00:00
Fix bytecode loading on Windows.
This commit is contained in:
parent
ecab831ebf
commit
9cf2cd2a11
@ -255,7 +255,7 @@ LUALIB_API int luaL_loadfile(lua_State *L, const char *filename)
|
||||
int status;
|
||||
const char *chunkname;
|
||||
if (filename) {
|
||||
ctx.fp = fopen(filename, "r");
|
||||
ctx.fp = fopen(filename, "rb");
|
||||
if (ctx.fp == NULL) {
|
||||
lua_pushfstring(L, "cannot open %s: %s", filename, strerror(errno));
|
||||
return LUA_ERRFILE;
|
||||
|
Loading…
Reference in New Issue
Block a user