We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f35c28 commit 708fff7Copy full SHA for 708fff7
include/toml++/impl/toml_formatter.inl
@@ -91,7 +91,7 @@ TOML_ANON_NAMESPACE_START
91
weight += 1u;
92
val *= -1.0;
93
}
94
- return weight + static_cast<size_t>(log10(val)) + 1u;
+ return weight + static_cast<size_t>(abs(log10(val))) + 1u;
95
96
97
case node_type::boolean: return 5u;
toml.hpp
@@ -17107,7 +17107,7 @@ TOML_ANON_NAMESPACE_START
17107
17108
17109
17110
17111
17112
17113
0 commit comments