Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
signed_integer_division.zig
pretty
plain
permalink
blame
history
•
7 lines
•
187 B
1
export fn foo(a: i32, b: i32) i32 {
2
return a / b;
3
}
4
5
// error
6
//
7
// :2:14: error: division with 'i32' and 'i32': signed integers must use @divTrunc, @divFloor, @divCeil, or @divExact