Skip to content

Conversation

@jthat
Copy link

@jthat jthat commented Jun 12, 2025

When porting the control gallery example (#14) I ran into the following build error:

% zig build
install
└─ install control-gallery
   └─ zig build-exe control-gallery Debug native 1 errors
src/ui.zig:688:31: error: expected type 'c_int', found 'bool'
        uiGroupSetMargined(g, margined);
                              ^~~~~~~~
src/ui.zig:678:59: note: parameter type declared here
    pub extern fn uiGroupSetMargined(g: *Group, margined: c_int) void;
                                                          ^~~~~

This change fixes ui.Group.SetMargined() to convert the bool correctly to a c_int for the call to uiGroupSetMargined().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant