svn commit: r337809 - head/stand/liblua
Warner Losh
imp at FreeBSD.org
Tue Aug 14 18:45:26 UTC 2018
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 */
More information about the svn-src-all
mailing list