Crc32: make the polynomial literal explicitly unsigned.

This commit is contained in:
Guillaume Jacquemin 2022-02-16 11:48:39 +01:00
parent 7cb9ea28b2
commit 955ec010b8

View file

@ -40,7 +40,7 @@ struct Crc32 {
};
const Containers::StaticArray<256, UnsignedInt> Crc32::table = []{
UnsignedInt polynomial = 0xEDB88320;
UnsignedInt polynomial = 0xEDB88320u;
Containers::StaticArray<256, UnsignedInt> temp{ValueInit};
for(UnsignedInt i = 0; i < 256; i++) {