The size of an object changes with the word size of the processor where the program is run.
Using fixed size integer types like int32_t and int64_t is the best way to have close control over data representation regardless of the processor the compiler is run.