Fix compile under MSVC
(ClCompile target) -> validat1.cpp(1081): warning C4800: 'CryptoPP::word32' : forcing value to bool 'true' or 'false' (performance warning) [c:\Users\cryptopp\cryptest.vcxproj] validat1.cpp(1090): warning C4800: 'CryptoPP::word32' : forcing value to bool 'true' or 'false' (performance warning) [c:\Users\cryptopp\cryptest.vcxproj] validat1.cpp(1099): warning C4800: 'CryptoPP::word32' : forcing value to bool 'true' or 'false' (performance warning) [c:\Users\cryptopp\cryptest.vcxproj]pull/462/head
parent
40d0710d43
commit
3db6f361d2
|
|
@ -1078,7 +1078,7 @@ bool TestMersenne()
|
||||||
std::cout << " VIA RNG is activated\n";
|
std::cout << " VIA RNG is activated\n";
|
||||||
|
|
||||||
// Bit 13 should be unset
|
// Bit 13 should be unset
|
||||||
fail = (msr & (1 << 13U));
|
fail = !!(msr & (1 << 13U));
|
||||||
pass &= !fail;
|
pass &= !fail;
|
||||||
if (fail)
|
if (fail)
|
||||||
std::cout << "FAILED:";
|
std::cout << "FAILED:";
|
||||||
|
|
@ -1087,7 +1087,7 @@ bool TestMersenne()
|
||||||
std::cout << " von Neumann corrector is activated\n";
|
std::cout << " von Neumann corrector is activated\n";
|
||||||
|
|
||||||
// Bit 14 should be unset
|
// Bit 14 should be unset
|
||||||
fail = (msr & (1 << 14U));
|
fail = !!(msr & (1 << 14U));
|
||||||
pass &= !fail;
|
pass &= !fail;
|
||||||
if (fail)
|
if (fail)
|
||||||
std::cout << "FAILED:";
|
std::cout << "FAILED:";
|
||||||
|
|
@ -1096,7 +1096,7 @@ bool TestMersenne()
|
||||||
std::cout << " String filter is deactivated\n";
|
std::cout << " String filter is deactivated\n";
|
||||||
|
|
||||||
// Bit 12:10 should be unset
|
// Bit 12:10 should be unset
|
||||||
fail = (msr & (0x7 << 10U));
|
fail = !!(msr & (0x7 << 10U));
|
||||||
pass &= !fail;
|
pass &= !fail;
|
||||||
if (fail)
|
if (fail)
|
||||||
std::cout << "FAILED:";
|
std::cout << "FAILED:";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue