1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +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:
Andreas Kling 2019-08-02 19:22:48 +02:00
parent 31de5dee26
commit ae4d707684

View file

@ -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 };
};