4 ms·
> No code should cast a pointer to a `long`, ever. Trying to excuse it it with "we don't support 32-bit" is deeply wrong. It's deeply wrong as an excuse but fo
by cesarb 3y ago
> No code should cast a pointer to a `long`, ever. Trying to excuse it it with "we don't support 32-bit" is deeply wrong.
It's deeply wrong as an excuse but for a different reason: casting a pointer to long also works on 32-bit. The only mainstream architecture in which it doesn't work is 64-bit Windows.
- DinoCoder99 3y agoSure, but just because something works doesn't mean you should do it. Better types have been around for what 25 years now?