Skip to content

Commit 7e18e40

Browse files
authored
Merge pull request #2038 from dsnopek/variant-alignas-8
Ensure `Variant`'s are 8-byte aligned
2 parents 82c6c44 + d93a37b commit 7e18e40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/godot_cpp/variant/variant.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace godot {
4545
class ObjectID;
4646

4747
class Variant {
48-
uint8_t opaque[GODOT_CPP_VARIANT_SIZE]{ 0 };
48+
alignas(8) uint8_t opaque[GODOT_CPP_VARIANT_SIZE]{ 0 };
4949

5050
friend class GDExtensionBinding;
5151
friend class MethodBind;

0 commit comments

Comments
 (0)