On 8 Apr 2013, at 3:10pm, Michael Black <mdblac...@yahoo.com> wrote:

> Which is why...IMHO....to avoid all the repeats of this question in the 
> future (and from the past)....one should simply to do the cast to int and put 
> a comment on the line that says " % int always fits in an int".
> 
> Too bad one can't cast to the type of a variable though in C.
> 
> And if IBuf is an int do you really want that to be a 64-bit int on a 64-bit 
> compiler?
> Would IBuf ever get that big or need be that big?  Yes...I know I sound like 
> IBM now...:-)

You need consistency.  For any particular value either use int throughout or 
int64 throughout.  If you do need to convert cast the value explicitly.

The problem in SQLite is that it has to work with many different compilers and 
on many different platforms.  It is extremely difficult to make that happen and 
not get warnings from any of the compilers you're using.

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

Reply via email to