Fix arithmetic register formatting for high number

High values would cause the formatting to be decimal while it should be hexadecimal if the value equals or exceeds one million.
This commit is contained in:
Amos 2023-01-16 15:28:39 +01:00
parent ca3e5ac9d1
commit 39920283c0

View File

@ -316,7 +316,7 @@ void CCrashHandler::FormatExceptionCode()
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void CCrashHandler::FormatALU(const CHAR* pszRegister, DWORD64 nContent) void CCrashHandler::FormatALU(const CHAR* pszRegister, DWORD64 nContent)
{ {
if (abs64(nContent) >= 1000000) if (nContent >= 1000000)
{ {
if (nContent > UINT_MAX) if (nContent > UINT_MAX)
{ {