Replace the one use of CompileTimeAssert with static_assert (already used elsewhere).
This commit is contained in:
1 parent
9ee50a2730
commit
b9c1af04ad
2 files changed
+1
-5
No files matched your search
@@ -219,8 +219,7 @@ void PrintObject(const T &Obj)
|
||||
|
||||
// If this miscompiles, adjust the size of
|
||||
// ZeldaVoicePB to 0x180 bytes (0xc0 shorts).
|
||||
CompileTimeAssert<sizeof(ZeldaVoicePB) == 0x180> ensure_zpb_size_correct;
|
||||
(void)ensure_zpb_size_correct;
|
||||
static_assert(sizeof(ZeldaVoicePB) == 0x180, "ZeldaVoicePB incorrectly defined.");
|
||||
|
||||
ss << std::hex;
|
||||
for (size_t i = 0; i < sizeof(T); i++)
|
||||
|
||||
Reference in new issue
Block a user