SQLite
Check-in [6cc023bb]
Not logged in
Overview
Comment:Fix a harmless MSVC compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6cc023bb29be51847fbbfab95c24fc89993ccdba
User & Date: drh 2013-11-19 18:17:20
Context
2013-11-20
00:59
Performance improvement for the OP_MustBeInt opcode in the VDBE. check-in: 96a65388 user: drh tags: trunk
2013-11-19
18:17
Fix a harmless MSVC compiler warning. check-in: 6cc023bb user: drh tags: trunk
13:55
Minor performance improvement to sqlite3SerialTypeGet(). check-in: 17e8524f user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ext/fts3/fts3.c.

356
357
358
359
360
361
362
363
364
365
366
367
368
369
370

  for(shift=28; shift<=63; shift+=7){
    u64 c = *p++;
    b += (c&0x7F) << shift;
    if( (c & 0x80)==0 ) break;
  }
  *v = b;
  return p - pStart;
}

/*
** Similar to sqlite3Fts3GetVarint(), except that the output is truncated to a
** 32-bit integer before it is returned.
*/
int sqlite3Fts3GetVarint32(const char *p, int *pi){







|







356
357
358
359
360
361
362
363
364
365
366
367
368
369
370

  for(shift=28; shift<=63; shift+=7){
    u64 c = *p++;
    b += (c&0x7F) << shift;
    if( (c & 0x80)==0 ) break;
  }
  *v = b;
  return (int)(p - pStart);
}

/*
** Similar to sqlite3Fts3GetVarint(), except that the output is truncated to a
** 32-bit integer before it is returned.
*/
int sqlite3Fts3GetVarint32(const char *p, int *pi){