Fixed wrong type used for storing the width.

This commit is contained in:
Patrick 2024-11-30 15:22:07 +01:00
parent 81f4c33508
commit 5bd19369ce

View File

@ -72,7 +72,7 @@ TStream& operator<<(TStream& stream, const Stackframe& stackframe)
template<typename TStream>
TStream& operator<<(TStream& stream, const Stacktrace& stacktrace)
{
const int oldWidth = stream.width();
const std::streamsize oldWidth = stream.width();
const std::ios::fmtflags oldFlags = stream.flags();
const int numDigits = static_cast<int>(std::ceil(std::log10(stacktrace.getFrames().size())));
stream << std::left;