zigvale icon indicating copy to clipboard operation
zigvale copied to clipboard

Pointer Issues

Open ominitay opened this issue 4 years ago • 1 comments

Pointers are different lengths depending on whether memory addresses are 64 or 32-bits long. This will cause the library to fail on non-64 bit architectures, as the sizes of structs will change. To get around this, pointers should be stored as a u64, and then cast into the correct pointer type.

ominitay avatar Nov 15 '21 14:11 ominitay

The two possible ways I can see run into either ziglang/zig#9512 or ziglang/zig#4562, so I'm putting this on hold for now, until either way becomes viable.

ominitay avatar Nov 16 '21 23:11 ominitay