diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2018-08-10 20:05:41 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2018-08-10 20:05:41 +0000 |
commit | abe858c1d6e8bf7d7206b09ed715677ac63b5fca (patch) | |
tree | b4a55f98f19586c9016c18dc0a0cbb51499500e9 /src/lutf8lib.c | |
parent | c07e635a743de50fac64b715c08cd78aa51077c5 (diff) |
Notes
Diffstat (limited to 'src/lutf8lib.c')
-rw-r--r-- | src/lutf8lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lutf8lib.c b/src/lutf8lib.c index de9e3dcdd648a..10bd238a71de6 100644 --- a/src/lutf8lib.c +++ b/src/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 */ |