Jan. 23, 2025
5:58 p.m.
Shouldn't there be a special type for doing this type of conversion?
That type is "unsigned long" :)
Wouldn't "uintptr_t" be a more explicit type for storing pointer addresses as integers? It seems to me it has the advantage of expressing intent better for us human readers. See <linux/types.h>. Yes, it is currently defined as an "unsigned long."