From a599c3e2704a80d16bf71bc57a6d8b4e4c7ccab7 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 11 Dec 2015 19:01:54 +0000 Subject: [PATCH] Added code for GCC warnings --- ibitset.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ibitset.h b/ibitset.h index ff1825b4..82a24dfc 100644 --- a/ibitset.h +++ b/ibitset.h @@ -70,7 +70,7 @@ namespace etl { } }; - + //************************************************************************* /// The base class for etl::bitset ///\ingroup bitset @@ -168,7 +168,7 @@ namespace etl ibitset* p_bitset; ///< The bitset. size_t position; ///< The position in the bitset. - }; + }; //************************************************************************* /// The size of the bitset. @@ -607,7 +607,7 @@ namespace etl { reset(); - const size_t SHIFT = (integral_limits::bits <= BITS_PER_ELEMENT) ? 0 : BITS_PER_ELEMENT; + const size_t SHIFT = (integral_limits::bits <= (int)BITS_PER_ELEMENT) ? 0 : BITS_PER_ELEMENT; // Can we do it in one hit? if (SHIFT == 0)