aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-06-20 12:02:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-06-20 12:02:49 -0300
commit453450d68751f74f0fab44bd96725a5606d2d9a1 (patch)
treebd339282cf9b010986b30e254a169956d131460e /ltable.c
parent55f566bd2270503d098404874d701f2f30abd0d3 (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index 80d3ff3e..6a7e28f0 100644
--- a/ltable.c
+++ b/ltable.c
@@ -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_)