diff options
Diffstat (limited to 'libs/liblua/src/lutf8lib.c')
-rw-r--r-- | libs/liblua/src/lutf8lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/liblua/src/lutf8lib.c b/libs/liblua/src/lutf8lib.c index 6db6fd3762..10bd238a71 100644 --- a/libs/liblua/src/lutf8lib.c +++ b/libs/liblua/src/lutf8lib.c @@ -1,5 +1,5 @@ /* -** $Id: lutf8lib.c,v 1.15 2015/03/28 19:16:55 roberto Exp roberto $ +** $Id: lutf8lib.c,v 1.16.1.1 2017/04/19 17:29:57 roberto Exp $ ** Standard library for UTF-8 manipulation ** See Copyright Notice in lua.h */ @@ -171,7 +171,7 @@ static int byteoffset (lua_State *L) { } else { if (iscont(s + posi)) - luaL_error(L, "initial position is a continuation byte"); + return luaL_error(L, "initial position is a continuation byte"); if (n < 0) { while (n < 0 && posi > 0) { /* move back */ do { /* find beginning of previous character */ |