diff --git a/src/ActorFrame.cpp b/src/ActorFrame.cpp index c9b62767f1..97b9433306 100644 --- a/src/ActorFrame.cpp +++ b/src/ActorFrame.cpp @@ -146,7 +146,7 @@ void ActorFrame::AddChild( Actor *pActor ) #endif ASSERT( pActor != nullptr ); - ASSERT( (void*)pActor != (void*)0xC0000005 ); + ASSERT( reinterpret_cast(pActor) != static_cast(0xC0000005) ); m_SubActors.push_back( pActor ); pActor->SetParent( this ); diff --git a/src/RageUtil.h b/src/RageUtil.h index 975be4aa6a..a909259f65 100644 --- a/src/RageUtil.h +++ b/src/RageUtil.h @@ -31,10 +31,10 @@ inline float max( float a, int b ) { return a > b? a:b; } inline float max( int a, float b ) { return a > b? a:b; } inline unsigned long min( unsigned int a, unsigned long b ) { return a < b? a:b; } inline unsigned long min( unsigned long a, unsigned int b ) { return a < b? a:b; } -inline size_t min( unsigned int a, size_t b ) { return a < b? a:b; } +inline unsigned long long min( unsigned int a, unsigned long long b ) { return a < b? a:b; } inline unsigned long max( unsigned int a, unsigned long b ) { return a > b? a:b; } inline unsigned long max( unsigned long a, unsigned int b ) { return a > b? a:b; } -inline size_t max( unsigned int a, size_t b ) { return a > b? a:b; } +inline unsigned long long max( unsigned int a, unsigned long long b ) { return a > b? a:b; } /** @brief If outside the range from low to high, bring it within range. */ #define clamp(val,low,high) ( max( (low), min((val),(high)) ) ) diff --git a/src/archutils/Win32/CrashHandlerChild.cpp b/src/archutils/Win32/CrashHandlerChild.cpp index 558f85356d..2ab57d8fc5 100644 --- a/src/archutils/Win32/CrashHandlerChild.cpp +++ b/src/archutils/Win32/CrashHandlerChild.cpp @@ -277,7 +277,7 @@ namespace SymbolLookup return true; } - SYMBOL_INFO *GetSym( unsigned long ptr, DWORD64 &disp ) + SYMBOL_INFO *GetSym( uintptr_t ptr, DWORD64 &disp ) { InitDbghelp(); @@ -370,14 +370,14 @@ namespace SymbolLookup RString sName = CrashChildGetModuleBaseName( (HMODULE)meminfo.AllocationBase ); DWORD64 disp; - SYMBOL_INFO *pSymbol = GetSym( (unsigned int)ptr, disp ); + SYMBOL_INFO *pSymbol = GetSym( reinterpret_cast(ptr), disp ); if( pSymbol ) { wsprintf( buf, "%p: %s!%s [%p+%Ix+%Ix]", ptr, sName.c_str(), pSymbol->Name, meminfo.AllocationBase, - reinterpret_cast(pSymbol->Address) - reinterpret_cast(meminfo.AllocationBase), + static_cast(pSymbol->Address) - reinterpret_cast(meminfo.AllocationBase), static_cast(disp)); return; }