From 1a1b2f3d7f321dd6f28118c985986940b189c635 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 14 Mar 2017 09:40:44 -0300 Subject: added 'return' to calls to 'luaL_error' (to signal to the compiler that the function cannot continue past that call) --- lutf8lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lutf8lib.c') diff --git a/lutf8lib.c b/lutf8lib.c index 6db6fd37..57bd59e0 100644 --- a/lutf8lib.c +++ b/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 2016/12/22 13:08:50 roberto Exp roberto $ ** 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 */ -- cgit v1.2.3-55-g6feb