diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-20 13:35:23 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-20 13:35:23 -0300 |
| commit | f90a130b0790985b518aa1360e074212463169e1 (patch) | |
| tree | 35f5715f0b61134acf7d61ee655684842b2fc70f | |
| parent | cb4950a6d8b7b3b860ef7581ff148e00995bb5ff (diff) | |
| download | lua-f90a130b0790985b518aa1360e074212463169e1.tar.gz lua-f90a130b0790985b518aa1360e074212463169e1.tar.bz2 lua-f90a130b0790985b518aa1360e074212463169e1.zip | |
typo in message
| -rw-r--r-- | lbitlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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) { | |||
| 152 | static int fieldargs (lua_State *L, int farg, int *width) { | 152 | static 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"); |
