From e4e5aa85a24bba6c243aeeaedc66ec712856c6db Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 16 Nov 2017 11:19:06 -0200 Subject: detail ('signal' -> 'sign' in comments) --- lbitlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lbitlib.c') diff --git a/lbitlib.c b/lbitlib.c index 02483d69..63dbbe1d 100644 --- a/lbitlib.c +++ b/lbitlib.c @@ -1,5 +1,5 @@ /* -** $Id: lbitlib.c,v 1.29 2015/10/08 15:55:35 roberto Exp roberto $ +** $Id: lbitlib.c,v 1.30 2015/11/11 19:08:09 roberto Exp roberto $ ** Standard library for bitwise operations ** See Copyright Notice in lua.h */ @@ -131,7 +131,7 @@ static int b_arshift (lua_State *L) { else { /* arithmetic shift for 'negative' number */ if (i >= LUA_NBITS) r = ALLONES; else - r = trim((r >> i) | ~(trim(~(lua_Unsigned)0) >> i)); /* add signal bit */ + r = trim((r >> i) | ~(trim(~(lua_Unsigned)0) >> i)); /* add sign bit */ pushunsigned(L, r); return 1; } -- cgit v1.2.3-55-g6feb