Hacker News new | past | comments | ask | show | jobs | submit login

https://google-styleguide.googlecode.com/svn/trunk/cppguide....

Maybe I'm reading this wrong, but to me it seems like this is saying go ahead and use the fixed size variants whenever, but it is still OK to use int when you need <=32 bits.




Yeah it's al lukewarm endorsement of int, quite possibly there only to accommodate legacy code.

"<stdint.h> defines types like int16_t, uint32_t, int64_t, etc. You should always use those in preference to short, unsigned long long and the like, when you need a guarantee on the size of an integer. Of the C integer types, only int should be used."




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: