From 77c86b9516e10d6bc7d3073bba266711e4040dad Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 20 Dec 2023 23:04:34 -0600 Subject: [PATCH] [ox/preloader] Add missing typenames --- deps/ox/src/ox/preloader/preloader.hpp | 2 +- deps/ox/src/ox/preloader/sizecatcher.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/ox/src/ox/preloader/preloader.hpp b/deps/ox/src/ox/preloader/preloader.hpp index 3ae3a856..8bebd93a 100644 --- a/deps/ox/src/ox/preloader/preloader.hpp +++ b/deps/ox/src/ox/preloader/preloader.hpp @@ -247,7 +247,7 @@ constexpr ox::Error Preloader::field(CRStringView, const T **val, std: template constexpr ox::Result Preloader::startAlloc(std::size_t sz) noexcept { oxRequire(a, ox::allocate(&m_writer, sz)); - m_allocStack.emplace_back(static_cast(m_writer.tellp())); + m_allocStack.emplace_back(static_cast(m_writer.tellp())); oxReturnError(m_writer.seekp(a)); return a; } diff --git a/deps/ox/src/ox/preloader/sizecatcher.hpp b/deps/ox/src/ox/preloader/sizecatcher.hpp index 3668c6bd..132c9839 100644 --- a/deps/ox/src/ox/preloader/sizecatcher.hpp +++ b/deps/ox/src/ox/preloader/sizecatcher.hpp @@ -107,7 +107,7 @@ constexpr std::size_t sizeOf(const T *t) noexcept { if constexpr(ox::is_integral_v) { return sizeof(T); } else if constexpr(ox::is_pointer_v) { - return sizeof(PlatSpec::PtrType); + return sizeof(typename PlatSpec::PtrType); } else { SizeCatcher sc; const auto err = model(sc.interface(), t);