Skip to content

Commit

Permalink
Fix alignCast error on aarch64-linux (capy-ui#31)
Browse files Browse the repository at this point in the history
- Tested on a pinephone running postmarketOS
  • Loading branch information
desttinghim authored Jan 18, 2023
1 parent b09f793 commit a410469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers.zig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Callbacks = struct {
getSize: *const fn (data: usize) Size,
computingPreferredSize: bool,
availableSize: ?Size = null,
layoutConfig: [16]u8,
layoutConfig: [16]u8 align(4),

pub fn getLayoutConfig(self: Callbacks, comptime T: type) T {
comptime std.debug.assert(@sizeOf(T) <= 16);
Expand Down

0 comments on commit a410469

Please sign in to comment.