[ox/preloader] Fix case where alignOf always used NativePlatSpec
All checks were successful
Build / build (push) Successful in 2m21s

This commit is contained in:
Gary Talent 2024-01-31 23:07:40 -06:00
parent ef9cb8bea4
commit 28b1c6dcf4

View File

@ -51,7 +51,7 @@ constexpr std::size_t alignOf(const T &v) noexcept {
typename PlatSpec::PtrType p = 0; typename PlatSpec::PtrType p = 0;
return PlatSpec::alignOf(p); return PlatSpec::alignOf(p);
} else { } else {
AlignmentCatcher<NativePlatSpec> c; AlignmentCatcher<PlatSpec> c;
oxAssert(model(c.interface(), &v), "Could not get alignment for type"); oxAssert(model(c.interface(), &v), "Could not get alignment for type");
return c.biggestAlignment; return c.biggestAlignment;
} }