From aec47e72f834e42c682a3a05579d50791e61a499 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 2 Oct 2011 02:19:01 +0300 Subject: [PATCH] Warning fix --- indexer/data_header.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indexer/data_header.hpp b/indexer/data_header.hpp index 49ac5ce32e..30e8d7a81b 100644 --- a/indexer/data_header.hpp +++ b/indexer/data_header.hpp @@ -38,8 +38,8 @@ namespace feature void SetScales(int * arr); inline size_t GetScalesCount() const { return m_scales.size(); } - inline int GetScale(int i) const { return m_scales[i]; } - inline int GetLastScale() const { return GetScale(GetScalesCount() - 1); } + inline int GetScale(int i) const { return static_cast(m_scales[i]); } + inline int GetLastScale() const { return GetScale(static_cast(GetScalesCount()) - 1); } pair GetScaleRange() const;