mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:37:36 +00:00
Kernel: Align the KResult value storage appropriately.
We should figure out how to convert this code to using AK::Result.
This commit is contained in:
parent
31de5dee26
commit
ae4d707684
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
char m_storage[sizeof(T)] __attribute__((aligned(sizeof(T))));
|
alignas (T) char m_storage[sizeof(T)];
|
||||||
KResult m_error;
|
KResult m_error;
|
||||||
bool m_is_error { false };
|
bool m_is_error { false };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue