TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C++ Coding Standard
Search

Rule:  POR#015

Synopsis:Do not assume that a long is 32-bits
Language:C++
Severity Level:6
Category:Portability


Description:

According to [Stroustrup], the size of a long is defined as greater or equal than the size of an int, but at least 32-bits. This means that the size of a long can be more than 32-bits. The size of the Windows types LONG and ULONG is defined as 32-bits.