forked from Mirrorlandia_minetest/minetest
Make Clang happy with lua lauxlib.c.
No functionnal change
This commit is contained in:
parent
b2f3ffe308
commit
c3a23ebc28
@ -574,7 +574,8 @@ LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) {
|
|||||||
lf.f = freopen(filename, "rb", lf.f); /* reopen in binary mode */
|
lf.f = freopen(filename, "rb", lf.f); /* reopen in binary mode */
|
||||||
if (lf.f == NULL) return errfile(L, "reopen", fnameindex);
|
if (lf.f == NULL) return errfile(L, "reopen", fnameindex);
|
||||||
/* skip eventual `#!...' */
|
/* skip eventual `#!...' */
|
||||||
while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ;
|
while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0])
|
||||||
|
{}
|
||||||
lf.extraline = 0;
|
lf.extraline = 0;
|
||||||
}
|
}
|
||||||
ungetc(c, lf.f);
|
ungetc(c, lf.f);
|
||||||
|
Loading…
Reference in New Issue
Block a user