From 1fb9fe9301539ef5e55bb9a5fe05f6b6903eecba Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 10 Nov 2021 17:27:21 -0800 Subject: [PATCH] gvevent_leave_obj: squash -Wconversion warnings --- lib/gvc/gvevent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } } -- 2.40.0