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
Notes:
sideshowbarker
2024-07-19 12:56:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ae4d7076841
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
char m_storage[sizeof(T)] __attribute__((aligned(sizeof(T))));
|
||||
alignas (T) char m_storage[sizeof(T)];
|
||||
KResult m_error;
|
||||
bool m_is_error { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue