Skip to content

Commit

Permalink
Fix clang warning about implicit type conversion (#228)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Vetter <[email protected]>
  • Loading branch information
VeaaC authored Jul 27, 2022
1 parent ac1558b commit b1d77cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flatdata-cpp/include/flatdata/internal/Reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ struct Reader
: ( typename BitsToUnsigned< num_bits >::type( 1 )
<< ( bit_width - std::is_signed< T >::value ) )
- 1 ),
min = bit_width == 0 || !std::is_signed< T >::value ? 0 : -max - 1
min = bit_width == 0 || !std::is_signed< T >::value
? static_cast< typename UnderlyingType< T >::type >( 0 )
: static_cast< typename UnderlyingType< T >::type >( -max - 1 )
};

StreamType data;
Expand Down

0 comments on commit b1d77cb

Please sign in to comment.