Add more debug

This commit is contained in:
Krystian Stasiowski
2020-02-22 21:44:34 -05:00
parent cd70147c7d
commit c0b78c7698
2 changed files with 47 additions and 45 deletions

View File

@ -542,8 +542,10 @@ to_static_wstring_float_impl(long double value) noexcept
wchar_t buffer[N + 1];
// swprintf returns a negative number if it can't
// fit all the characters in the buffer
std::cout << "trying swprintf\n";
if (std::swprintf(buffer, N + 1, L"%Lf", value) < 0)
{
std::cout << "swprintf < 0\n";
// the + 4 is for the decimal, 'e',
// its sign, and the sign of the integral portion
const int reserved_count =