]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unnecessary casts in 'vertexCallback'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 21 May 2022 01:45:05 +0000 (18:45 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 23 May 2022 05:00:30 +0000 (22:00 -0700)
cmd/smyrna/polytess.c

index ee94fa324e65c07451ea2facb550748b820df546..c7d22c09f994af71365c16c5afa85d9e75bdc243 100644 (file)
@@ -36,9 +36,8 @@ static void CALLBACK combineCallback(GLdouble coords[3], GLdouble *vertex_data[4
 
 static void CALLBACK vertexCallback(GLvoid *vertex)
 {
-    GLdouble *ptr;
-    ptr = (GLdouble *) vertex;
-    glVertex3dv((GLdouble *) ptr);
+    GLdouble *ptr = vertex;
+    glVertex3dv(ptr);
 
 }