typo in message
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lbitlib.c,v 1.14 2010/11/29 15:19:28 roberto Exp roberto $
|
** $Id: lbitlib.c,v 1.15 2010/12/17 13:26:38 roberto Exp roberto $
|
||||||
** Standard library for bitwise operations
|
** Standard library for bitwise operations
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -152,7 +152,7 @@ static int b_rrot (lua_State *L) {
|
|||||||
static int fieldargs (lua_State *L, int farg, int *width) {
|
static int fieldargs (lua_State *L, int farg, int *width) {
|
||||||
int f = luaL_checkint(L, farg);
|
int f = luaL_checkint(L, farg);
|
||||||
int w = luaL_optint(L, farg + 1, 1);
|
int w = luaL_optint(L, farg + 1, 1);
|
||||||
luaL_argcheck(L, 0 <= f, farg, "field cannot be netative");
|
luaL_argcheck(L, 0 <= f, farg, "field cannot be negative");
|
||||||
luaL_argcheck(L, 0 < w, farg + 1, "width must be positive");
|
luaL_argcheck(L, 0 < w, farg + 1, "width must be positive");
|
||||||
if (f + w > LUA_NBITS)
|
if (f + w > LUA_NBITS)
|
||||||
luaL_error(L, "trying to access non-existent bits");
|
luaL_error(L, "trying to access non-existent bits");
|
||||||
|
|||||||
Reference in New Issue
Block a user