From 453450d68751f74f0fab44bd96725a5606d2d9a1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 20 Jun 2013 12:02:49 -0300 Subject: new macro 'l_floor' (allows 'floorf' even when other math operations do not have an 'f' variant) --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 80d3ff3e..6a7e28f0 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 2.76 2013/05/27 12:43:37 roberto Exp roberto $ +** $Id: ltable.c,v 2.77 2013/05/29 14:05:03 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -70,7 +70,7 @@ /* checks whether a float has a value representable as a lua_Integer (and does the conversion if so) */ #define numisinteger(x,i) \ - (((x) == l_mathop(floor)(x)) && luaV_numtointeger(x, i)) + (((x) == l_floor(x)) && luaV_numtointeger(x, i)) #define dummynode (&dummynode_) -- cgit v1.2.3-55-g6feb