[Assorted-commits] SF.net SVN: assorted:[969] sandbox/trunk/src/cc/longlongint.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-09-25 04:09:16
|
Revision: 969 http://assorted.svn.sourceforge.net/assorted/?rev=969&view=rev Author: yangzhang Date: 2008-09-25 04:09:01 +0000 (Thu, 25 Sep 2008) Log Message: ----------- tweak Modified Paths: -------------- sandbox/trunk/src/cc/longlongint.cc Modified: sandbox/trunk/src/cc/longlongint.cc =================================================================== --- sandbox/trunk/src/cc/longlongint.cc 2008-09-18 02:47:37 UTC (rev 968) +++ sandbox/trunk/src/cc/longlongint.cc 2008-09-25 04:09:01 UTC (rev 969) @@ -18,8 +18,8 @@ int main() { -// long long int x = 32; - long int x = 32; + long long int x = 32; +// long int x = 32; f(x); int64_t y = 32; f(y); @@ -27,13 +27,12 @@ // size of the various ints cout << sizeof(int64_t) << endl; + cout << sizeof(int32_t) << endl; cout << sizeof(long long) << endl; - cout << sizeof(long int) << endl; cout << sizeof(long) << endl; cout << sizeof(int) << endl; cout << sizeof(0LL) << endl; cout << sizeof(0L) << endl; - // names are not very helpful // cout << typeid(int64_t).name() << endl; // cout << typeid(long long).name() << endl; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |