Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
non_pointer_given_to_intFromPtr.zig
pretty
plain
permalink
blame
history
•
7 lines
•
121 B
1
export fn entry(x: i32) usize {
2
return @intFromPtr(x);
3
}
4
5
// error
6
//
7
// :2:24: error: expected pointer, found 'i32'