From c008fac5b0f040a10dee6619113cfc02fccb5caa Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Mon, 15 Feb 2016 15:33:54 +0300 Subject: [PATCH] Minor warning fix. --- search/result.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/search/result.hpp b/search/result.hpp index d4ed29ed58..3c61b4d2b6 100644 --- a/search/result.hpp +++ b/search/result.hpp @@ -152,7 +152,8 @@ public: /// Used in viewport search only. void AddResultNoChecks(Result && res) { - res.SetPositionInResults(m_vec.size()); + ASSERT_LESS(m_vec.size(), numeric_limits::max(), ()); + res.SetPositionInResults(static_cast(m_vec.size())); m_vec.push_back(move(res)); }