From eddbdee83d0b14c640b2c1a9580caa9740f382eb Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 14 Aug 2018 18:45:25 +0000 Subject: [PATCH] For our INT64 implementation, we can compare integers and numbers directly because they are the same thing. Reviewed by: kevans@ --- stand/liblua/luaconf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stand/liblua/luaconf.h b/stand/liblua/luaconf.h index 7ed0e85db3a1..6eee830bc404 100644 --- a/stand/liblua/luaconf.h +++ b/stand/liblua/luaconf.h @@ -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 */