Fixed wrong type used for storing the width.
This commit is contained in:
parent
81f4c33508
commit
5bd19369ce
@ -72,7 +72,7 @@ TStream& operator<<(TStream& stream, const Stackframe& stackframe)
|
|||||||
template<typename TStream>
|
template<typename TStream>
|
||||||
TStream& operator<<(TStream& stream, const Stacktrace& stacktrace)
|
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 std::ios::fmtflags oldFlags = stream.flags();
|
||||||
const int numDigits = static_cast<int>(std::ceil(std::log10(stacktrace.getFrames().size())));
|
const int numDigits = static_cast<int>(std::ceil(std::log10(stacktrace.getFrames().size())));
|
||||||
stream << std::left;
|
stream << std::left;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user