Skip to content

Commit

Permalink
Static assert in crc32
Browse files Browse the repository at this point in the history
  • Loading branch information
capitalistspz committed Sep 15, 2024
1 parent 99363e8 commit 386c20f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/crypto/crc32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ uint32 crc32_calc_slice_by_8(uint32 previousCrc32, const void* data, size_t leng
Crc32Lookup[7][one & 0xFF];
}
else {
cemu_assert(false);
static_assert(std::endian::native == std::endian::big || std::endian::native == std::endian::little,
"Platform byte-order is unsupported");
}

length -= 8;
Expand Down

0 comments on commit 386c20f

Please sign in to comment.