[postgis-tickets] [PostGIS] #2605: armel: _ST_Covers() returns true for point in hole

PostGIS trac at osgeo.org
Wed Jan 29 01:07:36 PST 2014


#2605: armel: _ST_Covers() returns true for point in hole
---------------------+------------------------------------------------------
 Reporter:  mwanner  |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.2
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by mwanner):

 An 'int' return value gets casted to 'char' in several places. The latter
 isn't necessarily signed, so a '(int) -1' value may well be converted to a
 positive 'char' value on architectures where 'char' is unsigned.

 The attached patch fixes this issue by clearly separating the 'int' and
 'char' (or 'bool') values.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2605#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list