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
This commit is contained in:
parent
b97cbd0a32
commit
58a8a5096f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue