diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-03-16 11:22:09 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-03-16 11:22:09 -0300 |
| commit | 0c7738240ef81b88ded842e3a8ebfb3180bcf00c (patch) | |
| tree | 6472e77d6591df2c003d6e2c7c0a5b612eac6d8e /lcode.c | |
| parent | 7b0b6b3b3945b1adcf460321227243143d7e1543 (diff) | |
| download | lua-github-0c7738240ef81b88ded842e3a8ebfb3180bcf00c.tar.gz | |
FALLTHROUGH comment must be last "statement"
(so it does not work when inside a block)
Diffstat (limited to 'lcode.c')
| -rw-r--r-- | lcode.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |
