ignore return value from strtod()

This commit is contained in:
Yukihiro Matsumoto
2012-05-17 09:23:18 +09:00
parent d878fb73b2
commit db20b4e063
+1 -1
View File
@@ -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;