Skip to content

Commit a49fcbd

Browse files
kosz78endragor
authored andcommitted
Fix variant size for 32bit platform with memory alignment
1 parent 157a90e commit a49fcbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

godot/internal/godotinternaltypes.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ type
116116
expected*: VariantType
117117

118118
GodotVariant* {.byref.} = object
119-
data: array[4 + sizeof(int) div 4, float32]
119+
data: array[2, int64]
120+
data2: int
120121

121122
type GodotMethodBind* = object
122123

0 commit comments

Comments
 (0)