svn commit: r337808 - head/contrib/lua/src

Warner Losh imp at FreeBSD.org
Tue Aug 14 18:45:24 UTC 2018


Author: imp
Date: Tue Aug 14 18:45:20 2018
New Revision: 337808
URL: https://svnweb.freebsd.org/changeset/base/337808

Log:
  When the LUA floating point model is INT64, we don't need to do the
  overflow dance. This avoids compile errors on latter-day gcc compilers
  as well as simplifies the generated code.
  
  Reviewed by: kevans@

Modified:
  head/contrib/lua/src/lvm.c

Modified: head/contrib/lua/src/lvm.c
==============================================================================
--- head/contrib/lua/src/lvm.c	Tue Aug 14 18:45:16 2018	(r337807)
+++ head/contrib/lua/src/lvm.c	Tue Aug 14 18:45:20 2018	(r337808)
@@ -41,7 +41,7 @@
 ** float without rounding. Used in comparisons. Left undefined if
 ** all integers fit in a float precisely.
 */
-#if !defined(l_intfitsf)
+#if !defined(l_intfitsf) && LUA_FLOAT_TYPE != LUA_FLOAT_INT64
 
 /* number of bits in the mantissa of a float */
 #define NBM		(l_mathlim(MANT_DIG))


More information about the svn-src-all mailing list