Fixed bug in Parser<double|float>Item.cpp:
Too low precision for floating point values in generated source code.
This commit is contained in:
@@ -136,7 +136,7 @@ namespace Opm
|
||||
void ParserDoubleItem::inlineNew(std::ostream& os) const {
|
||||
os << "new ParserDoubleItem(" << "\"" << name() << "\"" << "," << ParserItemSizeEnum2String( sizeType() );
|
||||
if (m_defaultSet)
|
||||
os << "," << getDefault();
|
||||
os << "," << boost::lexical_cast<std::string>(getDefault());
|
||||
os << ")";
|
||||
}
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ namespace Opm
|
||||
void ParserFloatItem::inlineNew(std::ostream& os) const {
|
||||
os << "new ParserFloatItem(" << "\"" << name() << "\"" << "," << ParserItemSizeEnum2String( sizeType() );
|
||||
if (m_defaultSet)
|
||||
os << "," << getDefault();
|
||||
os << "," << boost::lexical_cast<std::string>(getDefault());
|
||||
os << ")";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user