Avoided inaccuracies on big integers. (Fix for bug #17330.)
This commit is contained in:
parent
226a947841
commit
7f1ded77b8
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ struct write_key_val_visitor : boost::static_visitor<void>
|
|||
void operator()(bool b) const
|
||||
{ out_ << (b ? "yes" : "no"); }
|
||||
void operator()(double d) const
|
||||
{ out_ << d; }
|
||||
{ int i = d; if (d == i) out_ << i; else out_ << d; }
|
||||
void operator()(std::string const &s) const
|
||||
{ out_ << '"' << escaped_string(s) << '"'; }
|
||||
void operator()(t_string const &s) const;
|
||||
|
|
Loading…
Add table
Reference in a new issue