From a20ac3e3491a914a501fb614eab103a95120798a Mon Sep 17 00:00:00 2001 From: Kristof Szabados <Kristof.Szabados@ericsson.com> Date: Mon, 30 Jan 2017 13:33:24 +0100 Subject: [PATCH] make the implicit conversion explicit Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com> --- compiler2/map.hh | 2 +- compiler2/vector.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler2/map.hh b/compiler2/map.hh index fdc01c435..532bfb23b 100644 --- a/compiler2/map.hh +++ b/compiler2/map.hh @@ -81,7 +81,7 @@ private: public: - static const size_t max_map_length = -1; + static const size_t max_map_length = (size_t) -1; /** Creates an empty map. */ map() : num_m(0), max_m(0), last_searched_key(0), m_ptr(NULL) { } diff --git a/compiler2/vector.hh b/compiler2/vector.hh index fd977d806..b38f6680c 100644 --- a/compiler2/vector.hh +++ b/compiler2/vector.hh @@ -67,7 +67,7 @@ private: public: - static const size_t max_vector_length = -1; + static const size_t max_vector_length = (size_t) -1; /** Creates an empty vector. */ vector() : num_e(0), e_ptr(NULL) { } -- GitLab