Skip to content
Snippets Groups Projects
Commit c3a23ebc authored by Loïc Blot's avatar Loïc Blot
Browse files

Make Clang happy with lua lauxlib.c.

No functionnal change
parent b2f3ffe3
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
if (lf.f == NULL) return errfile(L, "reopen", fnameindex);
/* 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;
}
ungetc(c, lf.f);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment