i'm trying to call a function with a i32 as argument, i pass this:
engine.backbuffer_height - @intFromFloat(clip.y + clip.h)
^i32 ^--------^f32
i get:
src/game/nk.zig:349:48: error: @intFromFloat must have a known result type
engine.backbuffer_height - @intFromFloat(clip.y + clip.h),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/game/nk.zig:349:48: note: use @as to provide explicit result type
why can't it deduce and cast to i32 why force me to uglify my code even more
add a function to stdlib or something else u already import
patch in a new builtin to a fork of the compiler