/ Check-in [d49be983]
Login

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

Overview
Comment:Fix a harmless compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | rtree-geopoly
Files: files | file ages | folders
SHA3-256:d49be9838d237b57ba1f12ed00e2d3411314ee1b9c30ef7bbaf65aca20d0870e
User & Date: drh 2018-08-25 18:57:12
Context
2018-08-25
19:51
Provide the two-argument geopoly_within(P1,P2) routine that determines if polygon P2 is contained within polygon P1. Make this function available to the query planner for optimized rtree lookups. Update the visual01.txt script to verify that the new functionality actually works. check-in: 6eb5d09b user: drh tags: rtree-geopoly
18:57
Fix a harmless compiler warning. check-in: d49be983 user: drh tags: rtree-geopoly
2018-08-23
14:54
Merge enhancements from trunk. check-in: c446c884 user: drh tags: rtree-geopoly
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/rtree/geopoly.c.

   694    694   static void geopolyAddSegments(
   695    695     GeoOverlap *p,          /* Add segments to this Overlap object */
   696    696     GeoPoly *pPoly,         /* Take all segments from this polygon */
   697    697     unsigned char side      /* The side of pPoly */
   698    698   ){
   699    699     unsigned int i;
   700    700     GeoCoord *x;
   701         -  for(i=0; i<pPoly->nVertex-1; i++){
          701  +  for(i=0; i<(unsigned)pPoly->nVertex-1; i++){
   702    702       x = pPoly->a + (i*2);
   703    703       geopolyAddOneSegment(p, x[0], x[1], x[2], x[3], side, i);
   704    704     }
   705    705     x = pPoly->a + (i*2);
   706    706     geopolyAddOneSegment(p, x[0], x[1], pPoly->a[0], pPoly->a[1], side, i);
   707    707   }
   708    708