On 3/4/16, Martin Raiber <martin at urbackup.org> wrote:
> Hi,
>
> I have used sqlite3VarintLen outside of SQLite and noticed that the
> assertion in this function is hit if the highest bit is set (and it
> returns 10 when it should return 9). E.g. with
>
> sqlite3VarintLen(0xF000000000000000);
>
> It could be that this is not relevant to SQLite as it is guaranteed that
> the function is not used with numbers that large.
>

Correct.  The input value in SQLite will never get that large.


-- 
D. Richard Hipp
drh at sqlite.org

Reply via email to