Closed thomcc closed 3 years ago
This was undefined behavior since the signature was wrong, but in practice it's probably fine, unless someone actually uses the c_void.
At least, on ABIs I'm familiar with that's true, and it's hard to imagine ones where a u8 (what c_void boils down to) isn't returned by register.
Also it was unsafe to call this, anyway -- so callers doing that could be assumed to know better than to use the returned c_void for anything.
c_void
Fixes #26
This was undefined behavior since the signature was wrong, but in practice it's probably fine, unless someone actually uses the c_void.
At least, on ABIs I'm familiar with that's true, and it's hard to imagine ones where a u8 (what c_void boils down to) isn't returned by register.
Also it was unsafe to call this, anyway -- so callers doing that could be assumed to know better than to use the returned
c_void
for anything.Fixes #26