mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-15 15:11:32 +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