Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F3651603
Alternate fix
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
imp
Aug 14 2018, 6:05 PM
2018-08-14 18:05:49 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
Alternate fix
View Options
diff --git a/contrib/lua/src/lstrlib.c b/contrib/lua/src/lstrlib.c
index d6aac616add5..7471345ae7b1 100644
--- a/contrib/lua/src/lstrlib.c
+++ b/contrib/lua/src/lstrlib.c
@@ -928,6 +928,7 @@ static void addquoted (luaL_Buffer *b, const char *s, size_t len) {
}
+#if LUA_FLOAT_TYPE != LUA_FLOAT_INT64
/*
** Ensures the 'buff' string uses a dot as the radix character.
*/
@@ -938,7 +939,7 @@ static void checkdp (char *buff, int nb) {
if (ppoint) *ppoint = '.'; /* change it to a dot */
}
}
-
+#endif
static void addliteral (lua_State *L, luaL_Buffer *b, int arg) {
switch (lua_type(L, arg)) {
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))
diff --git a/stand/liblua/luaconf.h b/stand/liblua/luaconf.h
index 7ed0e85db3a1..6eee830bc404 100644
--- a/stand/liblua/luaconf.h
+++ b/stand/liblua/luaconf.h
@@ -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 */
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1525493
Default Alt Text
Alternate fix (1 KB)
Attached To
Mode
P206 Alternate fix
Attached
Detach File
Event Timeline
Log In to Comment