summaryrefslogtreecommitdiff
path: root/Kernel/Time
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-09-05 00:57:53 -0700
committerAndreas Kling <kling@serenityos.org>2021-09-05 20:08:57 +0200
commit472454cdeda1ab87e879670f44993960013973ff (patch)
treead8c5c51d9ce3fcab18579f573aa35dd8c2a22a2 /Kernel/Time
parent112de58fe0601ef95544ab474f35ade14f947391 (diff)
downloadserenity-472454cdeda1ab87e879670f44993960013973ff.zip
Kernel: Switch static_asserts of a type size to AK::AssertSize
This will provide better debug ability when the size comparison fails.
Diffstat (limited to 'Kernel/Time')
-rw-r--r--Kernel/Time/HPET.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Time/HPET.cpp b/Kernel/Time/HPET.cpp
index 7e07731850..ee6d8e75cd 100644
--- a/Kernel/Time/HPET.cpp
+++ b/Kernel/Time/HPET.cpp
@@ -83,7 +83,7 @@ static_assert(__builtin_offsetof(HPETRegistersBlock, timers[1]) == 0x120);
// Note: The HPET specification says it reserves the range of byte 0x160 to
// 0x400 for comparators 3-31, but for implementing all 32 comparators the HPET
// MMIO space has to be 1280 bytes and not 1024 bytes.
-static_assert(sizeof(HPETRegistersBlock) == 0x500);
+static_assert(AssertSize<HPETRegistersBlock, 0x500>());
static u64 read_register_safe64(const HPETRegister& reg)
{