On Sep 29, 2009, at 2:21 PM, Roger Binns wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Nicolas Williams wrote:
>> If you move the cast to the left the warning should go away:  
>> ((sqlite3_int64)(1L<<63))
>
> And this is why making warnings go away leads to bugs.  The  
> replacement
> above will only work if sizeof(long)==sizeof(long long) which is not  
> the
> case on Windows in 64 bit mode or in 32 bit mode in general on any  
> platform.

Further:  We have had problems with the L suffix in some compilers.   
We haven't found a portable way to express a 64-bit integer literal.

>
> Roger
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkrCUCYACgkQmOOfHg372QTvAQCfQaHiApWb0UNFAgleFUnFQfAu
> nXkAnRqqCi4MNIllFSuoW0F9FwIz/8Hi
> =gmns
> -----END PGP SIGNATURE-----
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

D. Richard Hipp
d...@hwaci.com



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to