TOML precision revert

This commit is contained in:
MihailRis 2023-12-03 04:33:16 +03:00
parent f47882194c
commit 37f94f2f96

View File

@ -97,10 +97,7 @@ std::string Wrapper::write() const {
break;
case fieldtype::ftint: ss << *((int*)field->ptr); break;
case fieldtype::ftuint: ss << *((uint*)field->ptr); break;
case fieldtype::ftfloat:
ss << std::fixed;
ss << std::setprecision(15);
ss << *((float*)field->ptr); break;
case fieldtype::ftfloat: ss << *((float*)field->ptr); break;
case fieldtype::ftstring:
ss << escape_string(*((const string*)field->ptr));
break;