diff options
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.c,v 2.120 2017/11/16 13:19:06 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.121 2017/11/23 19:29:04 roberto Exp roberto $ |
3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -193,7 +193,7 @@ static int isneg (const char **s) { | |||
193 | #define MAXSIGDIG 30 | 193 | #define MAXSIGDIG 30 |
194 | 194 | ||
195 | /* | 195 | /* |
196 | ** convert an hexadecimal numeric string to a number, following | 196 | ** convert a hexadecimal numeric string to a number, following |
197 | ** C99 specification for 'strtod' | 197 | ** C99 specification for 'strtod' |
198 | */ | 198 | */ |
199 | static lua_Number lua_strx2number (const char *s, char **endptr) { | 199 | static lua_Number lua_strx2number (const char *s, char **endptr) { |
@@ -268,7 +268,7 @@ static const char *l_str2dloc (const char *s, lua_Number *result, int mode) { | |||
268 | ** Convert string 's' to a Lua number (put in 'result'). Return NULL | 268 | ** Convert string 's' to a Lua number (put in 'result'). Return NULL |
269 | ** on fail or the address of the ending '\0' on success. | 269 | ** on fail or the address of the ending '\0' on success. |
270 | ** 'pmode' points to (and 'mode' contains) special things in the string: | 270 | ** 'pmode' points to (and 'mode' contains) special things in the string: |
271 | ** - 'x'/'X' means an hexadecimal numeral | 271 | ** - 'x'/'X' means a hexadecimal numeral |
272 | ** - 'n'/'N' means 'inf' or 'nan' (which should be rejected) | 272 | ** - 'n'/'N' means 'inf' or 'nan' (which should be rejected) |
273 | ** - '.' just optimizes the search for the common case (nothing special) | 273 | ** - '.' just optimizes the search for the common case (nothing special) |
274 | ** This function accepts both the current locale or a dot as the radix | 274 | ** This function accepts both the current locale or a dot as the radix |