]> granicus.if.org Git - graphviz/commitdiff
gvevent_leave_obj: squash -Wconversion warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 11 Nov 2021 01:27:21 +0000 (17:27 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 17 Nov 2021 01:01:04 +0000 (17:01 -0800)
lib/gvc/gvevent.c

index 126c3d58057e4d40c507531e6435750f93ca3326..9fa6b6c9ae6fa6d54525e5652ff92e61f03db806 100644 (file)
@@ -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;
         }
     }