when using int in our games do we have to worry about using int32_t and int64_t for 32 and 64 systems, or does just declaring for instance say “int score = 0;” take care of all of that under the hood ?
Yeah, use int
unless you really need to ensure a bit-size for optimization or API requirements.
2 Likes
Ok , int will work fine on both 64 bit and 32 bit machines ?
Yes, it works but size of int will be different:
- 32 bits on 32 bit platforms
- 64 bits on 64 bit platforms
1 Like