3 ms·
> assuming 32 bit ints That's really not a valid assumption. There are 16 bit int platforms, I've worked on them. It's not even that uncommon. Casting in this
by IAmLiterallyAB 3y ago
> assuming 32 bit ints
That's really not a valid assumption. There are 16 bit int platforms, I've worked on them. It's not even that uncommon.
Casting in this scenario is simply incorrect. The correct thing to do is to use the formatting macros e.g. PRIuFAST16. Which noone ever does because it's gross and most developers don't actually care about portability.