From 5179d3149a247a803da8f2b61c364a538f62fa2d Mon Sep 17 00:00:00 2001 From: silinoron Date: Fri, 3 Sep 2010 21:55:57 -0700 Subject: Core/Game: Fix remaining warnings on windows (and most likely almost all of the ones on *nix) --HG-- branch : trunk --- src/server/shared/Utilities/Util.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/shared/Utilities/Util.cpp') diff --git a/src/server/shared/Utilities/Util.cpp b/src/server/shared/Utilities/Util.cpp index 68f25138a6a..27736e9ecda 100644 --- a/src/server/shared/Utilities/Util.cpp +++ b/src/server/shared/Utilities/Util.cpp @@ -141,12 +141,12 @@ void stripLineInvisibleChars(std::string &str) } -std::string secsToTimeString(uint32 timeInSecs, bool shortText, bool hoursOnly) +std::string secsToTimeString(uint64 timeInSecs, bool shortText, bool hoursOnly) { - uint32 secs = timeInSecs % MINUTE; - uint32 minutes = timeInSecs % HOUR / MINUTE; - uint32 hours = timeInSecs % DAY / HOUR; - uint32 days = timeInSecs / DAY; + uint64 secs = timeInSecs % MINUTE; + uint64 minutes = timeInSecs % HOUR / MINUTE; + uint64 hours = timeInSecs % DAY / HOUR; + uint64 days = timeInSecs / DAY; std::ostringstream ss; if(days) -- cgit v1.2.3