diff options
author | Warner Losh <imp@FreeBSD.org> | 2018-08-14 18:45:20 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2018-08-14 18:45:20 +0000 |
commit | 243ff7d88b50282b7da108c6a2a74e18c9ddfe64 (patch) | |
tree | da10d452ac108721685a892b602e5dd2aba1155c /contrib/lua | |
parent | 07d397d74651435ff6f4d474876589e85967350e (diff) | |
download | src-test-243ff7d88b50282b7da108c6a2a74e18c9ddfe64.tar.gz src-test-243ff7d88b50282b7da108c6a2a74e18c9ddfe64.zip |
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@
Notes
Notes:
svn path=/head/; revision=337808
Diffstat (limited to 'contrib/lua')
-rw-r--r-- | contrib/lua/src/lvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lua/src/lvm.c b/contrib/lua/src/lvm.c index 84ade6b2fa6c4..9040b04a3d11d 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)) |