aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lbitlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbitlib.c b/lbitlib.c
index 22796a25..705ca343 100644
--- a/lbitlib.c
+++ b/lbitlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbitlib.c,v 1.14 2010/11/29 15:19:28 roberto Exp roberto $ 2** $Id: lbitlib.c,v 1.15 2010/12/17 13:26:38 roberto Exp roberto $
3** Standard library for bitwise operations 3** Standard library for bitwise operations
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -152,7 +152,7 @@ static int b_rrot (lua_State *L) {
152static int fieldargs (lua_State *L, int farg, int *width) { 152static int fieldargs (lua_State *L, int farg, int *width) {
153 int f = luaL_checkint(L, farg); 153 int f = luaL_checkint(L, farg);
154 int w = luaL_optint(L, farg + 1, 1); 154 int w = luaL_optint(L, farg + 1, 1);
155 luaL_argcheck(L, 0 <= f, farg, "field cannot be netative"); 155 luaL_argcheck(L, 0 <= f, farg, "field cannot be negative");
156 luaL_argcheck(L, 0 < w, farg + 1, "width must be positive"); 156 luaL_argcheck(L, 0 < w, farg + 1, "width must be positive");
157 if (f + w > LUA_NBITS) 157 if (f + w > LUA_NBITS)
158 luaL_error(L, "trying to access non-existent bits"); 158 luaL_error(L, "trying to access non-existent bits");