mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +00:00
Use %f instead of %g in AST dumps
- To ensure that floating point constants are identifiable as floating point, FLispString::AddFloat() now prints them with %f.
This commit is contained in:
parent
61666e1515
commit
3044fdd0a9
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ public:
|
|||
void AddFloat(double f)
|
||||
{
|
||||
char buf[32];
|
||||
size_t len = mysnprintf(buf, countof(buf), "%g", f);
|
||||
size_t len = mysnprintf(buf, countof(buf), "%.4f", f);
|
||||
Add(buf, len);
|
||||
}
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue