From 0df4620d1e2f1c0db9d0585856043dd1353bd706 Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Thu, 22 Jun 2017 14:55:24 +0300 Subject: [PATCH] [ugc] Warning fix. --- ugc/types.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ugc/types.hpp b/ugc/types.hpp index 343f6d82c7..fd746d029d 100644 --- a/ugc/types.hpp +++ b/ugc/types.hpp @@ -61,7 +61,8 @@ inline uint32_t DaysAgo(Time const & time) auto const now = std::chrono::system_clock::now(); if (now < time) return 0; - return std::chrono::duration_cast(now - time).count() / 24; + auto const h = std::chrono::duration_cast(now - time).count() / 24; + return static_cast(h); } struct RatingRecord