properly cast from int to bool

This commit is contained in:
Dennis Luxen 2014-06-24 11:46:32 +02:00
parent 2064934939
commit efbda436f3

View File

@ -105,7 +105,7 @@ template <class ContainerT> class IteratorbasedCRC32
{ {
static const int SSE42_BIT = 0x00100000; static const int SSE42_BIT = 0x00100000;
const unsigned ecx = cpuid(); const unsigned ecx = cpuid();
const bool has_SSE42 = ecx & SSE42_BIT; const bool has_SSE42 = (ecx & SSE42_BIT) != 0;
if (has_SSE42) if (has_SSE42)
{ {
SimpleLogger().Write() << "using hardware based CRC32 computation"; SimpleLogger().Write() << "using hardware based CRC32 computation";