For our INT64 implementation, we can compare integers and numbers

directly because they are the same thing.

Reviewed by: kevans@
This commit is contained in:
Warner Losh 2018-08-14 18:45:25 +00:00
parent 243ff7d88b
commit eddbdee83d

View File

@ -450,9 +450,7 @@
** and therefore its conversion to float may have an ill-defined value.) ** and therefore its conversion to float may have an ill-defined value.)
*/ */
#define lua_numbertointeger(n,p) \ #define lua_numbertointeger(n,p) \
((n) >= (LUA_NUMBER)(LUA_MININTEGER) && \ (*(p) = (LUA_INTEGER)(n), 1)
(n) < -(LUA_NUMBER)(LUA_MININTEGER) && \
(*(p) = (LUA_INTEGER)(n), 1))
/* now the variable definitions */ /* now the variable definitions */