From 955ec010b8e75f6ae64fb26aed7e4ec801bba813 Mon Sep 17 00:00:00 2001 From: William JCM Date: Wed, 16 Feb 2022 11:48:39 +0100 Subject: [PATCH] Crc32: make the polynomial literal explicitly unsigned. --- src/Utilities/Crc32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utilities/Crc32.h b/src/Utilities/Crc32.h index 50d037f..e6babd6 100644 --- a/src/Utilities/Crc32.h +++ b/src/Utilities/Crc32.h @@ -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++) {