3 ms·
> Your second point doesn't make any sense. Someone reading `int` has to determine if that is actually correct or not too. If you assign an int32_t to an int16
by astrange 3y ago
> Your second point doesn't make any sense. Someone reading `int` has to determine if that is actually correct or not too.
If you assign an int32_t to an int16_t because you know the actual range of values fits at that point, later readers don't necessarily know that. (And it can change.)
If they're both int, there's no possible problem.
- IshKebab 3y agoYou're suggesting using the same integer type everywhere. If so you can use `uint64_t`. To put it another way: > If they're both int32_t, there's no possible problem.