I can't compile my code to 32 bit linux

i got this eror, i don’t know what todo:
main.zig:9:19: error: expected type ‘usize’, found ‘u64’
var node: *self = try std.heap.page_allocator.create(self);
^~~~~
zig version: 0.11.0

1 Like

Hey, welcome to Ziggit! It would help a lot in finding a solution if you include the code that produced the error. Without looking at the code, the only cause that can be deduced from the error message is precisely what the error message says, a type mismatch between usize and u64.

On a side note; I recommend looking at this thread on allocators to see why it’s maybe not a good idea to be using std.heap.page_allocator directly.

1 Like

thanks for the help, i rewrote the linked list with the arena allocator

1 Like