This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: int64_t == long long


Wesley Smith wrote:
 cout << sizeof(int64_t) << endl;
 cout << sizeof(long long) << endl;

print:

8
8


8*8 = 64

sizeof reports the # of bytes, not bits.
wes

Thanks, I knew that. I was just confused why they weren't then being treated as the same type.


--
Yang Zhang
http://www.mit.edu/~y_z/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]