From 243ff7d88b50282b7da108c6a2a74e18c9ddfe64 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 14 Aug 2018 18:45:20 +0000 Subject: [PATCH] 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@ --- contrib/lua/src/lvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lua/src/lvm.c b/contrib/lua/src/lvm.c index 84ade6b2fa6c..9040b04a3d11 100644 --- a/contrib/lua/src/lvm.c +++ b/contrib/lua/src/lvm.c @@ -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))