projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2f3ffe
)
Make Clang happy with lua lauxlib.c.
author
Loic Blot
<loic.blot@unix-experience.fr>
Thu, 12 Feb 2015 07:00:22 +0000
(08:00 +0100)
committer
Loic Blot
<loic.blot@unix-experience.fr>
Thu, 12 Feb 2015 07:00:22 +0000
(08:00 +0100)
No functionnal change
src/lua/src/lauxlib.c
patch
|
blob
|
history
diff --git
a/src/lua/src/lauxlib.c
b/src/lua/src/lauxlib.c
index 10f14e2c088e60085bdf186c20c9b178c5fad2b4..be41ebcd33fd67513652bb7a423575e21cdb61ca 100644
(file)
--- 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);