]> granicus.if.org Git - graphviz/commitdiff
glCompSetMouseUp: remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 01:50:48 +0000 (18:50 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Sep 2021 15:37:10 +0000 (08:37 -0700)
This pointer coerces implicitly.

lib/glcomp/glcompset.c

index 1b21242019152ad90810434d8e2b246c13c367ae..3e4c9cb1bc7914ce94a1adfa4f56b38a19d7d061 100644 (file)
@@ -118,8 +118,7 @@ static void glCompSetMouseUp(void *obj, GLfloat x, GLfloat y,
        ((glCompSet *) obj)->mouse.pos.y = tempY;
        ((glCompSet *) obj)->mouse.pos.z = 0;
        if (o_clicked)
-           o = glCompGetObjByMouse((glCompSet *) obj,
-                                   &((glCompSet *) obj)->mouse, 1);
+           o = glCompGetObjByMouse(obj, &((glCompSet *) obj)->mouse, 1);
        if (!o)
            return;
        if (o == o_clicked)