diff --git a/GCryptLib/include/GCrypt/GPrng.h b/GCryptLib/include/GCrypt/GPrng.h index 99e9a6a..b037a53 100644 --- a/GCryptLib/include/GCrypt/GPrng.h +++ b/GCryptLib/include/GCrypt/GPrng.h @@ -32,7 +32,7 @@ namespace Leonetienne::GCrypt { // Pull the required amount of bits std::stringstream ss; for (std::size_t i = 0; i < sizeof(T)*8; i++) { - ss << GetBit() ? '1' : '0'; + ss << (GetBit() ? '1' : '0'); } // Transform to bytes diff --git a/GCryptLib/src/Block.cpp b/GCryptLib/src/Block.cpp index 7631962..39cf60b 100644 --- a/GCryptLib/src/Block.cpp +++ b/GCryptLib/src/Block.cpp @@ -656,7 +656,7 @@ namespace Leonetienne::GCrypt { std::ostream& operator<<(std::ostream& os, const Block& b) { for (std::size_t i = 0; i < b.data.size(); i++) { - os << std::bitset(b.data[i]).to_string(); + os << std::bitset(b.data[i]).to_string(); } return os; }