Settings: Mark termination enables as an unaligned ptr

Unfortunately, the termination enables are not always at an aligned
boundary, and MSVC needs to taint the ptr type with __unaligned
in that case.
This commit is contained in:
Paul Hollinsky
2021-05-05 03:38:58 -04:00
parent 1bb114004e
commit 295ba490aa
10 changed files with 24 additions and 13 deletions
@@ -60,7 +60,7 @@ public:
}
protected:
const uint64_t* getTerminationEnables() const override {
ICSNEO_UNALIGNED(const uint64_t*) getTerminationEnables() const override {
auto cfg = getStructurePointer<valuecan4_4_2el_settings_t>();
if(cfg == nullptr)
return nullptr;