ext/include/iv/lexer.h in iv-phonic-0.0.6 vs ext/include/iv/lexer.h in iv-phonic-0.0.7
- old
+ new
@@ -799,10 +799,10 @@
last = buffer8_.end(); it != last; ++it) {
val = val * 8 + (*it - '0');
}
numeric_ = val;
} else {
- numeric_ = std::strtod(buffer8_.c_str(), NULL);
+ numeric_ = std::atof(buffer8_.c_str());
}
type_ = type;
return Token::NUMBER;
}