aboutsummaryrefslogtreecommitdiffstats
path: root/lutf8lib.c
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2020-07-09 22:56:47 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2020-07-09 22:56:47 +1000
commitde60088d19ff006b4feceb780e97a15611fe2905 (patch)
treef33c3c0e1ff38f18b539f5435aef4582473e7f77 /lutf8lib.c
parent942e9fb5c80368fe93ca195bc14272b2d4cd2881 (diff)
downloadluaossl-de60088d19ff006b4feceb780e97a15611fe2905.tar.gz
luaossl-de60088d19ff006b4feceb780e97a15611fe2905.tar.bz2
luaossl-de60088d19ff006b4feceb780e97a15611fe2905.zip
Squashed 'vendor/compat53/' changes from daebe77..7b783fb
7b783fb Fix repository name in rockspec 7e2b0b5 Add bit32 library 931652a Make it usable on Lua 5.4 a1735f6 Update backports to Lua 5.3.5 versions 01a43c0 Fix feature detection for strerror_r 71293f7 Fix structure initialization in compat53 lua_load 73fb49f Make test C module compile as C++ again. d7f9021 Link to `lua_getextraspace` quirks in README.md. 45ae6fe Improve `lua_getextraspace` tests. c325be4 Add an implementation of `lua_getextraspace()`. 3c76f8f Add rockspec for v0.7 release. git-subtree-dir: vendor/compat53 git-subtree-split: 7b783fb8efac60de8be91522d5731a9716e83d56
Diffstat (limited to 'lutf8lib.c')
-rw-r--r--lutf8lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lutf8lib.c b/lutf8lib.c
index de9e3dc..10bd238 100644
--- a/lutf8lib.c
+++ b/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 */