From 09689d5d454c72e3a6fed8a81e6a5fc8636372f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 16 Sep 2017 22:44:47 -0700 Subject: [PATCH] Cleanup. --- include/bx/hash.h | 2 ++ src/hash.cpp | 1 + 2 files changed, 3 insertions(+) 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) {