Fix macos compile issue
This commit is contained in:
parent
9a9cd05bed
commit
3630243d8d
@ -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
|
||||
|
@ -532,7 +532,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.CHUNK_SIZE_BITS>(b.data[i]).to_string();
|
||||
os << std::bitset<Block::CHUNK_SIZE_BITS>(b.data[i]).to_string();
|
||||
}
|
||||
return os;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user