"Gary E. Miller" <[email protected]> writes: > Yes. We often use casts to avoid compiler warnings, and is not obvious > what the best cast is for 32-bit and 64-bit compatibilty, As proven > in this thead by you and Greg reaching for (long) when you need (long > long). size_t and ssize_t almost always cause warnings in new code.
As I said, the right answer for types that you have no idea what they are -- if you don't use the PRI macro that the type should have defined -- is intmax_t and %j.
