From 6e5ef7b2300fa6942d2686e80797a2ddd8836586 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Wed, 28 Dec 2016 12:53:06 +0000 Subject: [PATCH] Fixed GCC warnings --- src/ideque.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ideque.h b/src/ideque.h index 6c235183..9afcc3bb 100644 --- a/src/ideque.h +++ b/src/ideque.h @@ -295,7 +295,7 @@ namespace etl //*************************************************** const_iterator& operator ++() { - index = (index == p_deque->BUFFER_SIZE - 1) ? 0 : index + 1; + index = (static_cast(index) == p_deque->BUFFER_SIZE - 1) ? 0 : index + 1; return *this; } @@ -331,7 +331,7 @@ namespace etl if (offset > 0) { index -= offset; - index = (index < 0) ? index + p_deque->BUFFER_SIZE : index; + index = (index < 0) ? static_cast(index) + p_deque->BUFFER_SIZE : index; } else if (offset < 0) {