[ox/preloader] Fix case where alignOf always used NativePlatSpec
All checks were successful
Build / build (push) Successful in 2m21s
All checks were successful
Build / build (push) Successful in 2m21s
This commit is contained in:
parent
ef9cb8bea4
commit
28b1c6dcf4
2
deps/ox/src/ox/preloader/platspecs.hpp
vendored
2
deps/ox/src/ox/preloader/platspecs.hpp
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user