Log in

View Full Version : intN types


KLS
01-20-2013, 07:07 PM
Will be changing intN types a bit today to better reflect their c99 and c++11 counterparts.

Essentially:
intN used to be unsigned so they have all been converted to uintN instead and intN is now a signed type.
sintN was signed and have all been converted to the new intN type and sintN types have been removed.
uintN types have not been touched outside of old intN types are now uintN types.

Keep this in mind when developing code in the future.

lerxst2112
01-20-2013, 07:54 PM
Yay! Having int32 be unsigned was quite unintuitive.

KLS
01-20-2013, 11:12 PM
We've had a few bugs (recently even) that were caused by people thinking int32 was signed when it wasn't. It's something we've been saying "we need to do this" for a few years and I just got up and ran the source through my regex and did it.

lerxst2112
01-20-2013, 11:22 PM
There may still be a few unsigned longs out there waiting to strike as well. I saw some being used as perl return values and I'm not sure that works with 64-bit. I'd guess all the truly destructive ones have been fixed though as more people use 64-bit on Linux.