/ Check-in [88b39c46]
Login

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

Overview
Comment:Fix harmless compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:88b39c46c15ab6bdd0ac9536ddb6fb09862d578d0f691c57d039b0a906f1c25c
User & Date: mistachkin 2018-09-06 16:47:10
Context
2018-09-06
16:50
Merge accidental fork. check-in: ebadb7dc user: mistachkin tags: trunk
16:47
Fix harmless compiler warning. check-in: 88b39c46 user: mistachkin tags: trunk
16:24
Add new test file "alterauth.test". check-in: 00940265 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/rtree/geopoly.c.

   282    282     if( sqlite3_value_type(pVal)==SQLITE_BLOB
   283    283      && (nByte = sqlite3_value_bytes(pVal))>=(4+6*sizeof(GeoCoord))
   284    284     ){
   285    285       const unsigned char *a = sqlite3_value_blob(pVal);
   286    286       int nVertex;
   287    287       nVertex = (a[1]<<16) + (a[2]<<8) + a[3];
   288    288       if( (a[0]==0 || a[0]==1)
   289         -     && (nVertex*2*sizeof(GeoCoord) + 4)==nByte
          289  +     && (nVertex*2*sizeof(GeoCoord) + 4)==(unsigned int)nByte
   290    290       ){
   291    291         p = sqlite3_malloc64( sizeof(*p) + (nVertex-1)*2*sizeof(GeoCoord) );
   292    292         if( p==0 ){
   293    293           if( pRc ) *pRc = SQLITE_NOMEM;
   294    294           if( pCtx ) sqlite3_result_error_nomem(pCtx);
   295    295         }else{
   296    296           int x = 1;