lua

A copy of the Lua development repository
Log | Files | Refs | README

commit fbd8614bdb92199520bef10a8e020662bc94222b
parent f3b52a606169b09b32ed172f95276c6735f5ce54
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri, 13 May 2016 16:09:20 -0300

comment (FALLTHROUGH)

Diffstat:
Mlcode.c | 4++--
Mlstrlib.c | 6+++---
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lcode.c b/lcode.c @@ -1,5 +1,5 @@ /* -** $Id: lcode.c,v 2.107 2016/01/04 13:40:57 roberto Exp roberto $ +** $Id: lcode.c,v 2.108 2016/01/05 16:22:37 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -1065,7 +1065,7 @@ void luaK_prefix (FuncState *fs, UnOpr op, expdesc *e, int line) { case OPR_MINUS: case OPR_BNOT: if (constfolding(fs, op + LUA_OPUNM, e, &ef)) break; - /* else go through */ + /* FALLTHROUGH */ case OPR_LEN: codeunexpval(fs, cast(OpCode, op + OP_UNM), e, line); break; diff --git a/lstrlib.c b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.247 2016/04/22 16:36:30 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.248 2016/05/02 13:58:01 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -958,8 +958,8 @@ static void addliteral (lua_State *L, luaL_Buffer *b, int arg) { addliteralnum(L, b, lua_tonumber(L, arg)); break; } - /* else integers; write in "native" format *//* FALLTHROUGH */ - } + /* else integers; write in "native" format */ + } /* FALLTHROUGH */ case LUA_TNIL: case LUA_TBOOLEAN: { luaL_tolstring(L, arg, NULL); luaL_addvalue(b);