summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Profiler.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2017-06-07 04:16:02 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2017-06-07 19:52:07 -0700
commite1a3e41bf33bf6a366760ede17c2e3bd2b106116 (patch)
treea2d6b34b5603794a24c0e6acd998e52d6313aeb0 /Source/Core/Common/Profiler.cpp
parentbe7c6a081918ac2240f6a2e4e51ca6e3daa0f032 (diff)
fix various instances of -1 being assigned to unsigned types
Diffstat (limited to 'Source/Core/Common/Profiler.cpp')
-rw-r--r--Source/Core/Common/Profiler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/Profiler.cpp b/Source/Core/Common/Profiler.cpp
index fdc356a164..0be14073bd 100644
--- a/Source/Core/Common/Profiler.cpp
+++ b/Source/Core/Common/Profiler.cpp
@@ -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;