mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
fix various instances of -1 being assigned to unsigned types
This commit is contained in:
parent
be7c6a0819
commit
e1a3e41bf3
15 changed files with 25 additions and 27 deletions
|
@ -29,8 +29,8 @@ std::string Profiler::s_lazy_result = "";
|
|||
int Profiler::s_lazy_delay = 0;
|
||||
|
||||
Profiler::Profiler(const std::string& name)
|
||||
: m_name(name), m_usecs(0), m_usecs_min(-1), m_usecs_max(0), m_usecs_quad(0), m_calls(0),
|
||||
m_depth(0)
|
||||
: m_name(name), m_usecs(0), m_usecs_min(UINT64_MAX), m_usecs_max(0), m_usecs_quad(0),
|
||||
m_calls(0), m_depth(0)
|
||||
{
|
||||
m_time = Common::Timer::GetTimeUs();
|
||||
s_max_length = std::max<u32>(s_max_length, u32(m_name.length()));
|
||||
|
@ -154,7 +154,7 @@ std::string Profiler::Read()
|
|||
buffer << std::setw(PROFILER_FIELD_LENGTH) << std::right << m_usecs_max;
|
||||
|
||||
m_usecs = 0;
|
||||
m_usecs_min = -1;
|
||||
m_usecs_min = UINT64_MAX;
|
||||
m_usecs_max = 0;
|
||||
m_usecs_quad = 0;
|
||||
m_calls = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue