diff options
author | dartraiden <wowemuh@gmail.com> | 2018-07-10 17:32:21 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2018-07-10 17:35:53 +0300 |
commit | 98487dbc5b2650a1f17bd9454e4d0a6b966c033d (patch) | |
tree | a48684847b7f88ddc89eb65a24ddb1913d786bca /libs/liblua/src/lstrlib.c | |
parent | 6279b5f012a3b3d5734c9cc67c7a307cb0fd8eef (diff) |
liblua: update to Lua 5.3.5
Diffstat (limited to 'libs/liblua/src/lstrlib.c')
-rw-r--r-- | libs/liblua/src/lstrlib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/liblua/src/lstrlib.c b/libs/liblua/src/lstrlib.c index 934b7db88c..b4bed7e93d 100644 --- a/libs/liblua/src/lstrlib.c +++ b/libs/liblua/src/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.253 2016/12/20 18:37:00 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.254.1.1 2017/04/19 17:29:57 roberto Exp $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -879,7 +879,7 @@ static int lua_number2strx (lua_State *L, char *buff, int sz, buff[i] = toupper(uchar(buff[i])); } else if (fmt[SIZELENMOD] != 'a') - luaL_error(L, "modifiers for format '%%a'/'%%A' not implemented"); + return luaL_error(L, "modifiers for format '%%a'/'%%A' not implemented"); return n; } @@ -1199,8 +1199,8 @@ static int getnum (const char **fmt, int df) { static int getnumlimit (Header *h, const char **fmt, int df) { int sz = getnum(fmt, df); if (sz > MAXINTSIZE || sz <= 0) - luaL_error(h->L, "integral size (%d) out of limits [1,%d]", - sz, MAXINTSIZE); + return luaL_error(h->L, "integral size (%d) out of limits [1,%d]", + sz, MAXINTSIZE); return sz; } |