[postgis-tickets] r16318 - Remove warning: unsigned is always positive
Paul Ramsey
pramsey at cleverelephant.ca
Tue Jan 16 05:48:48 PST 2018
Author: pramsey
Date: 2018-01-16 05:48:47 -0800 (Tue, 16 Jan 2018)
New Revision: 16318
Modified:
trunk/liblwgeom/ptarray.c
Log:
Remove warning: unsigned is always positive
Modified: trunk/liblwgeom/ptarray.c
===================================================================
--- trunk/liblwgeom/ptarray.c 2018-01-16 08:57:12 UTC (rev 16317)
+++ trunk/liblwgeom/ptarray.c 2018-01-16 13:48:47 UTC (rev 16318)
@@ -1756,8 +1756,7 @@
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);
More information about the postgis-tickets
mailing list