Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
non_float_passed_to_intFromFloat.zig
pretty
plain
permalink
blame
history
•
8 lines
•
149 B
1
export fn entry() void {
2
const x: i32 = @intFromFloat(@as(i32, 54));
3
_ = x;
4
}
5
6
// error
7
//
8
// :2:34: error: expected float type, found 'i32'