diff --git a/include/bx/hash.h b/include/bx/hash.h index 2267289..6af79c6 100644 --- a/include/bx/hash.h +++ b/include/bx/hash.h @@ -93,6 +93,8 @@ namespace bx Ieee, //!< 0xedb88320 Castagnoli, //!< 0x82f63b78 Koopman, //!< 0xeb31d82e + + Count }; /// diff --git a/src/hash.cpp b/src/hash.cpp index a4ec553..ba7fcf2 100644 --- a/src/hash.cpp +++ b/src/hash.cpp @@ -125,6 +125,7 @@ static const uint32_t* s_crcTable[] = s_crcTableCastagnoli, s_crcTableKoopman, }; +BX_STATIC_ASSERT(BX_COUNTOF(s_crcTable) == HashCrc32::Count); void HashCrc32::begin(Enum _type) {