aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2011-06-14 12:47:48 +0200
committerMike Pall <mike>2011-06-14 12:47:48 +0200
commit9cf2cd2a1177ea7529890e6004d94fb092a7c92a (patch)
treec5624c035b6fd935f5f59162569a7317d898111e /src
parentecab831ebfca1b08e93bf8dd3c1a7e3b43cf5c97 (diff)
downloadluajit-9cf2cd2a1177ea7529890e6004d94fb092a7c92a.tar.gz
luajit-9cf2cd2a1177ea7529890e6004d94fb092a7c92a.tar.bz2
luajit-9cf2cd2a1177ea7529890e6004d94fb092a7c92a.zip
Fix bytecode loading on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/lib_aux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_aux.c b/src/lib_aux.c
index bb5995aa..628d6a57 100644
--- a/src/lib_aux.c
+++ b/src/lib_aux.c
@@ -255,7 +255,7 @@ LUALIB_API int luaL_loadfile(lua_State *L, const char *filename)
255 int status; 255 int status;
256 const char *chunkname; 256 const char *chunkname;
257 if (filename) { 257 if (filename) {
258 ctx.fp = fopen(filename, "r"); 258 ctx.fp = fopen(filename, "rb");
259 if (ctx.fp == NULL) { 259 if (ctx.fp == NULL) {
260 lua_pushfstring(L, "cannot open %s: %s", filename, strerror(errno)); 260 lua_pushfstring(L, "cannot open %s: %s", filename, strerror(errno));
261 return LUA_ERRFILE; 261 return LUA_ERRFILE;