From 21131a35a39a372b4b0a04ad8340d7c10c93d970 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 11 Mar 2023 16:56:44 -0600 Subject: [PATCH] [ox/preloader] Cleanup NativePlatSpec --- deps/ox/src/ox/preloader/platspecs.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deps/ox/src/ox/preloader/platspecs.hpp b/deps/ox/src/ox/preloader/platspecs.hpp index e5b672bd..08fcc109 100644 --- a/deps/ox/src/ox/preloader/platspecs.hpp +++ b/deps/ox/src/ox/preloader/platspecs.hpp @@ -16,16 +16,13 @@ struct NativePlatSpec { using PtrType = uintptr_t; using size_t = std::size_t; - static constexpr auto PtrAlign = alignof(void*); - static constexpr PtrType RomStart = 0x08000000; - template [[nodiscard]] static constexpr std::size_t alignOf(const T &v) noexcept { if constexpr(ox::is_integral_v) { return alignof(T); } else if constexpr(ox::is_pointer_v) { - PtrType p = 0; + const PtrType p = 0; return alignOf(p); } else { AlignmentCatcher c;