Date: Tue, 14 Aug 2018 18:45:25 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r337809 - head/stand/liblua Message-ID: <201808141845.w7EIjPRt058956@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Tue Aug 14 18:45:25 2018 New Revision: 337809 URL: https://svnweb.freebsd.org/changeset/base/337809 Log: For our INT64 implementation, we can compare integers and numbers directly because they are the same thing. Reviewed by: kevans@ Modified: head/stand/liblua/luaconf.h Modified: head/stand/liblua/luaconf.h ============================================================================== --- head/stand/liblua/luaconf.h Tue Aug 14 18:45:20 2018 (r337808) +++ head/stand/liblua/luaconf.h Tue Aug 14 18:45:25 2018 (r337809) @@ -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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808141845.w7EIjPRt058956>