In most cases, you don't need to pick a specific size of integer to use in your code. Swift provides an integer type, Int
, which has the same size as the current platform's native word size:
- On a 32bit platform,
Int
is the same size asInt32
- On a 64bit platform,
Int
is the same size asInt64