From 58a8a5096fc4588d70b8b671e153a83dd0ce5f57 Mon Sep 17 00:00:00 2001 From: rich_sposato Date: Mon, 17 Oct 2011 19:56:59 +0000 Subject: [PATCH] Added parantheses to remove compiler warning. git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1151 7ec92016-0320-0410-acc4-a06ded1c099a --- include/loki/SafeBits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/loki/SafeBits.h b/include/loki/SafeBits.h index 449b242..0e3e3fc 100644 --- a/include/loki/SafeBits.h +++ b/include/loki/SafeBits.h @@ -177,8 +177,8 @@ public: #ifndef LOKI_BIT_FIELD_NONTEMPLATE_INIT template < unsigned int i > static SafeBitConst make_bit_const() { - LOKI_STATIC_CHECK( i <= ( 8 * sizeof(word_t) ), Index_is_beyond_size_of_data ); - LOKI_STATIC_CHECK( sizeof(SafeBitConst) == sizeof(word_t), Object_size_does_not_match_data_size ); + LOKI_STATIC_CHECK( ( i <= ( 8 * sizeof(word_t) ) ), Index_is_beyond_size_of_data ); + LOKI_STATIC_CHECK( ( sizeof(SafeBitConst) == sizeof(word_t) ), Object_size_does_not_match_data_size ); // Why check for ( i > 0 ) again inside the shift if the shift // can never be evaluated for i == 0? Some compilers see shift by ( i - 1 ) // and complain that for i == 0 the number is invalid, without