Merge origin feature/relaunch into feature/relaunch

This commit is contained in:
Leonetienne 2022-05-25 14:58:40 +02:00
commit 21cbd80488
No known key found for this signature in database
GPG Key ID: C33879CD92E9708C
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ namespace Leonetienne::GCrypt {
// Pull the required amount of bits // Pull the required amount of bits
std::stringstream ss; std::stringstream ss;
for (std::size_t i = 0; i < sizeof(T)*8; i++) { for (std::size_t i = 0; i < sizeof(T)*8; i++) {
ss << GetBit() ? '1' : '0'; ss << (GetBit() ? '1' : '0');
} }
// Transform to bytes // Transform to bytes

View File

@ -656,7 +656,7 @@ namespace Leonetienne::GCrypt {
std::ostream& operator<<(std::ostream& os, const Block& b) { std::ostream& operator<<(std::ostream& os, const Block& b) {
for (std::size_t i = 0; i < b.data.size(); i++) { 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; return os;
} }