Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/extern/lua/lutf8lib.c
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-01-05 15:16:15 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2025-01-05 15:16:15 +1100
commit9bc12f5f97f6774e6eeeb3ef577e026cc8d03357 (patch)
tree7b2909e6869cf1dff081e114e9693c8736b1480e /source/extern/lua/lutf8lib.c
parent41f0b9001f60c59691ec04d937e6a9ef424794f1 (diff)
Lua 5.3.6
Diffstat (limited to 'source/extern/lua/lutf8lib.c')
-rw-r--r--source/extern/lua/lutf8lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/extern/lua/lutf8lib.c b/source/extern/lua/lutf8lib.c
index 9042582..10bd238 100644
--- a/source/extern/lua/lutf8lib.c
+++ b/source/extern/lua/lutf8lib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lutf8lib.c,v 1.15 2015/03/28 19:16:55 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 */
@@ -194,7 +194,7 @@ static int byteoffset (lua_State *L) {
lua_pushinteger(L, posi + 1);
else /* no such character */
lua_pushnil(L);
- return 1;
+ return 1;
}