diff options
Diffstat (limited to 'engines/sword25/util/lua')
-rw-r--r-- | engines/sword25/util/lua/llex.cpp | 6 | ||||
-rw-r--r-- | engines/sword25/util/lua/lstrlib.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/engines/sword25/util/lua/llex.cpp b/engines/sword25/util/lua/llex.cpp index 423f0285ca..ebda9ffbdf 100644 --- a/engines/sword25/util/lua/llex.cpp +++ b/engines/sword25/util/lua/llex.cpp @@ -377,8 +377,10 @@ static int llex (LexState *ls, SemInfo *seminfo) { read_long_string(ls, seminfo, sep); return TK_STRING; } - else if (sep == -1) return '['; - else luaX_lexerror(ls, "invalid long string delimiter", TK_STRING); + else if (sep == -1) + return '['; + luaX_lexerror(ls, "invalid long string delimiter", TK_STRING); + break; } case '=': { next(ls); diff --git a/engines/sword25/util/lua/lstrlib.cpp b/engines/sword25/util/lua/lstrlib.cpp index 5da45e1fea..78122030f9 100644 --- a/engines/sword25/util/lua/lstrlib.cpp +++ b/engines/sword25/util/lua/lstrlib.cpp @@ -799,10 +799,8 @@ static int str_format (lua_State *L) { luaL_addvalue(&b); continue; /* skip the `addsize' at the end */ } - else { - sprintf(buff, form, s); - break; - } + sprintf(buff, form, s); + break; } default: { /* also treat cases `pnLlh' */ return luaL_error(L, "invalid option " LUA_QL("%%%c") " to " |