]> granicus.if.org Git - graphviz/commitdiff
smyrna: squash some -Wfloat-conversion warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 6 May 2022 00:54:45 +0000 (17:54 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Jun 2022 16:21:54 +0000 (09:21 -0700)
cmd/smyrna/gui/glcompui.c

index b71543403136ab978fb02865b27d3196da29726b..cec76db4b6752d488a3dd46101d6a6b5e747f295 100644 (file)
@@ -246,10 +246,10 @@ glCompSet *glcreate_gl_topview_menu(void)
     p->common.borderWidth = 1;
     p->shadowwidth = 0;
 
-    c.R = 0.80;
-    c.G = 0.6;
-    c.B = 0.6;
-    c.A = 1.6;
+    c.R = 0.80f;
+    c.G = 0.6f;
+    c.B = 0.6f;
+    c.A = 1.6f;
 
     y = 1;