X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d79ccefda4259a5c973a86ef5c617580bba20dc..7b504551c292ecb4296693983161ac5ad03745f6:/src/common/appbase.cpp diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 701f23a342..35145e1e8f 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -721,7 +721,11 @@ static wxString GetAssertStackTrace() protected: virtual void OnStackFrame(const wxStackFrame& frame) { - m_stackTrace << wxString::Format(_T("[%02d] "), frame.GetLevel()); + m_stackTrace << wxString::Format + ( + _T("[%02d] "), + wx_truncate_cast(int, frame.GetLevel()) + ); wxString name = frame.GetName(); if ( !name.empty() ) @@ -730,11 +734,7 @@ static wxString GetAssertStackTrace() } else { - m_stackTrace << wxString::Format - ( - _T("0x%08lx"), - (unsigned long)frame.GetAddress() - ); + m_stackTrace << wxString::Format(_T("%p"), frame.GetAddress()); } if ( frame.HasSourceLocation() )