On Fri, Nov 09, 2012 at 03:24:56PM +0100, Muffinman wrote:
Yeah, that explains why I didn't get any compiling
error on a 32bit
computer and did get on a 64bit one (where I did correct the error).
However, the latter was satisfied with %li. Apparently in c++ there is
no difference between long and long int (as far as I can find through
Google) but for c I could not find much info on a potential difference.
long is the same as long int in both. The problem is that int and long int
are both 32 bits on i386, but on x86-64 int is 32 and long int is 64 bits.
John