Commit db20b4e0 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

ignore return value from strtod()

parent d878fb73
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment