From a83ed55f1e3e20f73d01489c18889bb8554593ce Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 21 Feb 2013 10:44:53 -0300 Subject: added 'return' (when possible) to calls to error functions --- lbitlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lbitlib.c') diff --git a/lbitlib.c b/lbitlib.c index 705ca343..c222e574 100644 --- a/lbitlib.c +++ b/lbitlib.c @@ -1,5 +1,5 @@ /* -** $Id: lbitlib.c,v 1.15 2010/12/17 13:26:38 roberto Exp roberto $ +** $Id: lbitlib.c,v 1.16 2011/06/20 16:35:23 roberto Exp roberto $ ** Standard library for bitwise operations ** See Copyright Notice in lua.h */ @@ -155,7 +155,7 @@ static int fieldargs (lua_State *L, int farg, int *width) { luaL_argcheck(L, 0 <= f, farg, "field cannot be negative"); luaL_argcheck(L, 0 < w, farg + 1, "width must be positive"); if (f + w > LUA_NBITS) - luaL_error(L, "trying to access non-existent bits"); + return luaL_error(L, "trying to access non-existent bits"); *width = w; return f; } -- cgit v1.2.3-55-g6feb