diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-06-20 12:02:49 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-06-20 12:02:49 -0300 |
| commit | 453450d68751f74f0fab44bd96725a5606d2d9a1 (patch) | |
| tree | bd339282cf9b010986b30e254a169956d131460e /ltable.c | |
| parent | 55f566bd2270503d098404874d701f2f30abd0d3 (diff) | |
| download | lua-453450d68751f74f0fab44bd96725a5606d2d9a1.tar.gz lua-453450d68751f74f0fab44bd96725a5606d2d9a1.tar.bz2 lua-453450d68751f74f0fab44bd96725a5606d2d9a1.zip | |
new macro 'l_floor' (allows 'floorf' even when other math operations
do not have an 'f' variant)
Diffstat (limited to 'ltable.c')
| -rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.c,v 2.76 2013/05/27 12:43:37 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.77 2013/05/29 14:05:03 roberto Exp roberto $ |
| 3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -70,7 +70,7 @@ | |||
| 70 | /* checks whether a float has a value representable as a lua_Integer | 70 | /* checks whether a float has a value representable as a lua_Integer |
| 71 | (and does the conversion if so) */ | 71 | (and does the conversion if so) */ |
| 72 | #define numisinteger(x,i) \ | 72 | #define numisinteger(x,i) \ |
| 73 | (((x) == l_mathop(floor)(x)) && luaV_numtointeger(x, i)) | 73 | (((x) == l_floor(x)) && luaV_numtointeger(x, i)) |
| 74 | 74 | ||
| 75 | 75 | ||
| 76 | #define dummynode (&dummynode_) | 76 | #define dummynode (&dummynode_) |
