mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
jsom stringify fix
This commit is contained in:
parent
ba83b27179
commit
b62b7bf2bb
1 changed files with 1 additions and 1 deletions
|
|
@ -39,6 +39,7 @@ void stringifyObj(JObject* obj,
|
|||
string indentstr,
|
||||
bool nice);
|
||||
|
||||
#include <iostream>
|
||||
void stringify(Value* value,
|
||||
stringstream& ss,
|
||||
int indent,
|
||||
|
|
@ -71,7 +72,6 @@ void stringify(Value* value,
|
|||
} else if (value->type == valtype::boolean) {
|
||||
ss << (value->value.boolean ? "true" : "false");
|
||||
} else if (value->type == valtype::number) {
|
||||
ss << std::fixed;
|
||||
ss << std::setprecision(15);
|
||||
ss << value->value.decimal;
|
||||
} else if (value->type == valtype::integer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue