mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
ignore return value from strtod()
This commit is contained in:
+1
-1
@@ -4062,7 +4062,7 @@ parser_yylex(parser_state *p)
|
||||
}
|
||||
tokfix(p);
|
||||
if (is_float) {
|
||||
strtod(tok(p), 0);
|
||||
(void)strtod(tok(p), 0); /* just check if float is within range */
|
||||
if (errno == ERANGE) {
|
||||
yywarning_s(p, "float %s out of range", tok(p));
|
||||
errno = 0;
|
||||
|
||||
Reference in New Issue
Block a user