diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-12-05 13:31:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-12-05 13:31:07 -0300 |
commit | 2d92102dee88a81711dca8e8ea3ef0ea9d732283 (patch) | |
tree | ec1573ef5847b8d1788acfe5aa4137b0b92b70b7 /lstrlib.c | |
parent | 490ecfcaa1f25fcc17f9dcb0ed7216da54a391e3 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | /* |