Skip to content

fix: Add explicit @intCast for u16 to i16 mouse coordinate conversions#290

Open
sakakibara wants to merge 1 commit intorockorager:mainfrom
sakakibara:fix/zig-0.15-intcast
Open

fix: Add explicit @intCast for u16 to i16 mouse coordinate conversions#290
sakakibara wants to merge 1 commit intorockorager:mainfrom
sakakibara:fix/zig-0.15-intcast

Conversation

@sakakibara
Copy link

@sakakibara sakakibara commented Dec 30, 2025

Zig 0.15 requires explicit integer casts where implicit conversions were previously allowed. When assigning Point.col/row (u16) to Mouse.col/row (i16), an explicit @intCast is now required.

This fixes compilation errors in vxfw.App.MouseHandler.handleMouse when building with Zig 0.15.

Zig 0.15 requires explicit integer casts where implicit conversions were
previously allowed. When assigning Point.col/row (u16) to Mouse.col/row
(i16), an explicit @intcast is now required.

This fixes compilation errors in vxfw.App.MouseHandler.handleMouse when
building with Zig 0.15.
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