In time, ignore my previous reply to this thread as SQLite portability requirements make it invalid (at least I think they would). According to the C language standard, signed overflow is undefined behavior and, therefore, should not be relied upon.

There is also a simpler way to check it using a division of the maximum possible value by the multiplier (which will never overflow).

Bernardo Sulzbach
sqlite-users mailing list

Reply via email to