Skip to content

Commit

Permalink
wm: fix build on 32-bit systems
Browse files Browse the repository at this point in the history
Force uint64_t to be aligned to 8-bytes even on 32-bit systems, so we
don't need a special case for them.

Fixes #1346

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed Oct 2, 2024
1 parent c321da4 commit 9ad2e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wm/wm.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ enum wm_tree_change_type {
typedef struct wm_treeid {
/// The generation of the window ID. This is used to detect if the window ID is
/// reused. Inherited from the wm_tree at cr
uint64_t gen;
alignas(8) uint64_t gen;
/// The X window ID.
xcb_window_t x;

Expand Down

0 comments on commit 9ad2e05

Please sign in to comment.