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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337809

View File

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