From f62143c4c69dad28936446b96c4f026f8b0955fe Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Tue, 21 Feb 2017 16:46:17 +0300 Subject: [PATCH] Review fixes. --- search/hotels_filter.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/search/hotels_filter.hpp b/search/hotels_filter.hpp index 4adbc23877..2ad8bbb02c 100644 --- a/search/hotels_filter.hpp +++ b/search/hotels_filter.hpp @@ -319,6 +319,10 @@ struct OneOfRule final : public Rule os << "[ one of:"; for (size_t i = 0; i < static_cast(ftypes::IsHotelChecker::Type::Count); ++i) { + unsigned const bit = 1U << i; + if ((m_types & bit) == 0) + continue; + auto const type = static_cast(i); os << " " << ftypes::IsHotelChecker::GetHotelTypeTag(type); }