]> granicus.if.org Git - postgis/commitdiff
CircNode compare function needs to deference inputs
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 26 Mar 2014 15:04:01 +0000 (15:04 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 26 Mar 2014 15:04:01 +0000 (15:04 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12365 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeodetic_tree.c

index 651e41bd76daf96ffa22909398743c50eed548f6..c972fd636c33117ef0cd12b84395d44a1ca8608b 100644 (file)
@@ -117,8 +117,8 @@ circ_node_compare(const void* v1, const void* v2)
 {
        POINT2D p1, p2;
        unsigned int u1, u2;
-       CIRC_NODE *c1 = (CIRC_NODE*)v1;
-       CIRC_NODE *c2 = (CIRC_NODE*)v2;
+       CIRC_NODE *c1 = *((CIRC_NODE**)v1);
+       CIRC_NODE *c2 = *((CIRC_NODE**)v2);
        p1.x = rad2deg((c1->center).lon);
        p1.y = rad2deg((c1->center).lat);
        p2.x = rad2deg((c2->center).lon);