← Back to team overview

kicad-developers team mailing list archive

Re: Return value from SHAPE_POLY_SET::pointInPolygon

 

Hi Simon,

Thank you for noticing, now it is corrected.

Regards,
Orson

On 07/28/2015 12:40 AM, Simon Richter wrote:
> Hi,
> 
> that function returns a bool, but common/geometry/shape_poly_set.cpp
> line 704-705 has
> 
>                 if( !d )
>                     return -1;
> 
> That smells fishy and gives a compiler warning.
> 
>    Simon
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 


Attachment: signature.asc
Description: OpenPGP digital signature


References