From: Matthew Fernandez Date: Thu, 11 Nov 2021 01:27:21 +0000 (-0800) Subject: gvevent_leave_obj: squash -Wconversion warnings X-Git-Tag: 2.50.0~30^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fb9fe9301539ef5e55bb9a5fe05f6b6903eecba;p=graphviz gvevent_leave_obj: squash -Wconversion warnings --- diff --git a/lib/gvc/gvevent.c b/lib/gvc/gvevent.c index 126c3d580..9fa6b6c9a 100644 --- a/lib/gvc/gvevent.c +++ b/lib/gvc/gvevent.c @@ -222,13 +222,13 @@ static void gvevent_leave_obj(GVJ_t * job) if (obj) { switch (agobjkind(obj)) { case AGRAPH: - GD_gui_state((graph_t*)obj) &= ~GUI_STATE_ACTIVE; + GD_gui_state((graph_t*)obj) &= (unsigned char)~GUI_STATE_ACTIVE; break; case AGNODE: - ND_gui_state((node_t*)obj) &= ~GUI_STATE_ACTIVE; + ND_gui_state((node_t*)obj) &= (unsigned char)~GUI_STATE_ACTIVE; break; case AGEDGE: - ED_gui_state((edge_t*)obj) &= ~GUI_STATE_ACTIVE; + ED_gui_state((edge_t*)obj) &= (unsigned char)~GUI_STATE_ACTIVE; break; } }