SQLite4
Check-in [21442d15d0]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Bug fix in the varint.c encoder for values between 140737488355328 and 281474976710655.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 21442d15d0573ec1d57ba6cb66ac5607622388d2
User & Date: drh 2013-04-29 17:15:23
Context
2013-04-29
17:48
Fix a problem with the binary-to-decimal mode of the "varint" command-line test tool. check-in: 34281c89cf user: drh tags: trunk
17:15
Bug fix in the varint.c encoder for values between 140737488355328 and 281474976710655. check-in: 21442d15d0 user: drh tags: trunk
2013-03-28
19:41
Add tests to sqltest. check-in: fde11ff78c user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/varint.c.

   199    199     }
   200    200     if( w<=255 ){
   201    201       z[0] = 252;
   202    202       z[1] = (unsigned char)w;
   203    203       varintWrite32(z+2, y);
   204    204       return 6;
   205    205     }
   206         -  if( w<=32767 ){
          206  +  if( w<=65535 ){
   207    207       z[0] = 253;
   208    208       z[1] = (unsigned char)(w>>8);
   209    209       z[2] = (unsigned char)w;
   210    210       varintWrite32(z+3, y);
   211    211       return 7;
   212    212     }
   213    213     if( w<=16777215 ){