]> granicus.if.org Git - postgis/commitdiff
Remove warning: unsigned is always positive
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 16 Jan 2018 13:48:47 +0000 (13:48 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 16 Jan 2018 13:48:47 +0000 (13:48 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@16318 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/ptarray.c

index 84be41a756c4f59ec56c1b05bd5273c6bcbaa45b..5ecfb145e3809be6ecd7b5f5b65ffcb474d9f91d 100644 (file)
@@ -1756,8 +1756,7 @@ getPoint_internal(const POINTARRAY *pa, uint32_t n)
 
        LWDEBUGF(5, "(n=%d, pa.npoints=%d, pa.maxpoints=%d)",n,pa->npoints,pa->maxpoints);
 
-       if ( ( n < 0 ) ||
-            ( n > pa->npoints ) ||
+       if ( ( n > pa->npoints ) ||
             ( n >= pa->maxpoints ) )
        {
                lwerror("%s [%d] called outside of ptarray range (n=%d, pa.npoints=%d, pa.maxpoints=%d)", __FILE__, __LINE__, n, pa->npoints, pa->maxpoints);