diff options
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.177 2008/06/12 14:37:27 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.178 2008/06/13 18:45:35 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -474,7 +474,7 @@ LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) { | |||
474 | lf.f = freopen(filename, "rb", lf.f); /* reopen in binary mode */ | 474 | lf.f = freopen(filename, "rb", lf.f); /* reopen in binary mode */ |
475 | if (lf.f == NULL) return errfile(L, "reopen", fnameindex); | 475 | if (lf.f == NULL) return errfile(L, "reopen", fnameindex); |
476 | /* skip eventual `#!...' */ | 476 | /* skip eventual `#!...' */ |
477 | while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ; | 477 | while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ; |
478 | lf.extraline = 0; | 478 | lf.extraline = 0; |
479 | } | 479 | } |
480 | ungetc(c, lf.f); | 480 | ungetc(c, lf.f); |