mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 22:13:24 +00:00
Avoided inaccuracies on big integers. (Fix for bug #17330.)
This commit is contained in:
parent
226a947841
commit
7f1ded77b8
@ -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…
x
Reference in New Issue
Block a user