silence cast and c++ warnings)

This commit is contained in:
Sergio R. Caprile committed 2024-07-08 17:02:54 -03:00
1 parent 90623492b7
commit d46798c2a7
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -200,8 +200,8 @@ static void core_block(const uint32_t *restrict start,
static void xor_block(uint8_t *restrict dest, const uint8_t *restrict source,
const uint32_t *restrict pad, unsigned int chunk_size) {
unsigned int i, full_blocks = chunk_size / sizeof(uint32_t);
// have to be carefull, we are going back from uint32 to uint8, so endianess
unsigned int i, full_blocks = chunk_size / (unsigned int) sizeof(uint32_t);
// have to be carefull, we are going back from uint32 to uint8, so endianness
// matters again
xor32_blocks(dest, source, pad, full_blocks)