aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-02-12 08:00:22 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-02-12 08:00:22 +0100
commitc3a23ebc2813b0b9692622292eb25c9649a9cdda (patch)
tree49320f77c412d2964f08bfcfdb4a42a8bf25c17d
parentb2f3ffe3081a3cd49c0536257aab86b82b022cae (diff)
downloadminetest-c3a23ebc2813b0b9692622292eb25c9649a9cdda.tar.gz
minetest-c3a23ebc2813b0b9692622292eb25c9649a9cdda.tar.bz2
minetest-c3a23ebc2813b0b9692622292eb25c9649a9cdda.zip
Make Clang happy with lua lauxlib.c.
No functionnal change
-rw-r--r--src/lua/src/lauxlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/src/lauxlib.c b/src/lua/src/lauxlib.c
index 10f14e2c0..be41ebcd3 100644
--- a/src/lua/src/lauxlib.c
+++ b/src/lua/src/lauxlib.c
@@ -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);