You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Experimented with intCast: return @as(c_int, 1) << @intCast(u5, (X - @as(c_int, 1)));
It fixes this issue, but I'm not experienced enough to know if this is the correct solution.
The text was updated successfully, but these errors were encountered:
Minimal example:
The error:
Tested with zig-0.9.1 and zig-0.10.0-dev.1838+3bfb1616d.
The problem is within SDL_BUTTON() function:
https://github.com/MasterQ32/SDL.zig/blob/bf72bbef8c1c113b2862ff2fab33b1fedbf159f6/src/binding/sdl.zig#L2474-L2476
Experimented with intCast:
return @as(c_int, 1) << @intCast(u5, (X - @as(c_int, 1)));
It fixes this issue, but I'm not experienced enough to know if this is the correct solution.
The text was updated successfully, but these errors were encountered: