summaryrefslogtreecommitdiff
path: root/lua/lutf8lib.c
diff options
context:
space:
mode:
authorkyren <kerriganw@gmail.com>2018-07-18 05:29:27 -0400
committerkyren <kerriganw@gmail.com>2018-07-18 05:29:27 -0400
commit73306d2286457ff50cc81727522ad82cb6b6c32a (patch)
tree4e4a6f072b00b2e9dbc5a282a25f476c57ed23d0 /lua/lutf8lib.c
parent2d4f4b95c8f1504ae7751d56ed62db49a8170fda (diff)
downloadmlua-73306d2286457ff50cc81727522ad82cb6b6c32a.zip
Upgrade embedded Lua to 5.3.5
Diffstat (limited to 'lua/lutf8lib.c')
-rw-r--r--lua/lutf8lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lutf8lib.c b/lua/lutf8lib.c
index de9e3dc..10bd238 100644
--- a/lua/lutf8lib.c
+++ b/lua/lutf8lib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lutf8lib.c,v 1.16 2016/12/22 13:08:50 roberto Exp $
+** $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 */