aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-12-05 13:31:07 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-12-05 13:31:07 -0300
commit2d92102dee88a81711dca8e8ea3ef0ea9d732283 (patch)
treeec1573ef5847b8d1788acfe5aa4137b0b92b70b7 /lstrlib.c
parent490ecfcaa1f25fcc17f9dcb0ed7216da54a391e3 (diff)
downloadlua-2d92102dee88a81711dca8e8ea3ef0ea9d732283.tar.gz
lua-2d92102dee88a81711dca8e8ea3ef0ea9d732283.tar.bz2
lua-2d92102dee88a81711dca8e8ea3ef0ea9d732283.zip
'l_mathlim' renamed to 'l_floatatt'
That macro is applied to float attributes, not to limits.
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 946461a8..586e0d78 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1004,7 +1004,7 @@ static int str_gsub (lua_State *L) {
1004** to nibble boundaries by making what is left after that first digit a 1004** to nibble boundaries by making what is left after that first digit a
1005** multiple of 4. 1005** multiple of 4.
1006*/ 1006*/
1007#define L_NBFD ((l_mathlim(MANT_DIG) - 1)%4 + 1) 1007#define L_NBFD ((l_floatatt(MANT_DIG) - 1)%4 + 1)
1008 1008
1009 1009
1010/* 1010/*
@@ -1072,7 +1072,7 @@ static int lua_number2strx (lua_State *L, char *buff, int sz,
1072** and '\0') + number of decimal digits to represent maxfloat (which 1072** and '\0') + number of decimal digits to represent maxfloat (which
1073** is maximum exponent + 1). (99+3+1, adding some extra, 110) 1073** is maximum exponent + 1). (99+3+1, adding some extra, 110)
1074*/ 1074*/
1075#define MAX_ITEMF (110 + l_mathlim(MAX_10_EXP)) 1075#define MAX_ITEMF (110 + l_floatatt(MAX_10_EXP))
1076 1076
1077 1077
1078/* 1078/*