From 0c7738240ef81b88ded842e3a8ebfb3180bcf00c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 16 Mar 2018 11:22:09 -0300 Subject: FALLTHROUGH comment must be last "statement" (so it does not work when inside a block) --- lcode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lcode.c') diff --git a/lcode.c b/lcode.c index 95e87f31..661c7916 100644 --- a/lcode.c +++ b/lcode.c @@ -1,5 +1,5 @@ /* -** $Id: lcode.c,v 2.158 2018/02/26 14:16:05 roberto Exp roberto $ +** $Id: lcode.c,v 2.159 2018/03/07 15:55:38 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -1696,8 +1696,7 @@ void luaK_finish (FuncState *fs) { break; /* no extra work */ /* else use OP_RETURN to do the extra work */ SET_OPCODE(*pc, OP_RETURN); - /* FALLTHROUGH */ - } + } /* FALLTHROUGH */ case OP_RETURN: case OP_TAILCALL: { if (p->sizep > 0 || p->is_vararg) { SETARG_C(*pc, p->is_vararg ? p->numparams + 1 : 0); -- cgit v1.2.3-55-g6feb