]> granicus.if.org Git - graphviz/commitdiff
squash -Wfloat-conversion warning in glprintfglut
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Sep 2020 23:37:06 +0000 (16:37 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 12 Sep 2020 02:24:16 +0000 (19:24 -0700)
lib/glcomp/glcompfont.c

index f21014b89d36e0b9e685b64744c571e6dde95432..2ef74c3ad641ded90f6599e435e864a5f2ecacee 100644 (file)
@@ -86,7 +86,7 @@ void restore_gl_vars(glCompFont * f)
 void glprintfglut(void *font, GLfloat xpos, GLfloat ypos, GLfloat zpos,
                  char *bf)
 {
-    glRasterPos3f(xpos, ypos, zpos + 0.001);
+    glRasterPos3f(xpos, ypos, zpos + 0.001f);
     print_bitmap_string(font, bf);