From f9aa86f6ced7389e40c5508eee062a1990c228a6 Mon Sep 17 00:00:00 2001 From: Amelia Coutard Date: Sun, 15 May 2022 00:43:03 +0200 Subject: [PATCH] Removed useless padding: didn't know that structs were padded to their alignment automatically --- src/paging.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/paging.hpp b/src/paging.hpp index 4084905..b5d13cd 100644 --- a/src/paging.hpp +++ b/src/paging.hpp @@ -165,7 +165,6 @@ private: phys_ptr prev; phys_ptr next; std::uint64_t size; - char padding[0x1000 - 8 * 3]; }; static_assert(sizeof(page) == 0x1000); static_assert(alignof(page) == 0x1000); -- 2.47.0