From 58502b38d3eaf5649c9e09b6af6ea84d726dccd1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 21:53:19 +0200 Subject: *: use std::numeric_limits --- src/Timer.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Timer.cxx') diff --git a/src/Timer.cxx b/src/Timer.cxx index e32ebe04b..8a1718fbf 100644 --- a/src/Timer.cxx +++ b/src/Timer.cxx @@ -24,6 +24,8 @@ #include +#include + #include #include #include @@ -62,8 +64,8 @@ unsigned Timer::GetDelay() const if (delay < 0) return 0; - if (delay > G_MAXINT) - delay = G_MAXINT; + if (delay > std::numeric_limits::max()) + delay = std::numeric_limits::max(); return delay; } -- cgit v1.2.3