[sqlite] Assertion hit in sqlite3VarintLen

2016-03-04 Thread Martin Raiber
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(0xF000); It could be that this is not relevant to SQLite as it is guaranteed

[sqlite] Assertion hit in sqlite3VarintLen

2016-03-04 Thread Richard Hipp
On 3/4/16, Martin Raiber 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(0xF000); > > It could be that this