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.