If we need -0.1 and -0.2 as floats (or the closest representation), we should
just say so. This improves the compiler’s ability to understand the intent of
this code.
x=parseXdotwithattrs(g);
if (x) {
- draw_xdot(x,-0.2);
+ draw_xdot(x,-0.2f);
freeXDot (x);
}
for (v = agfstnode(g); v; v = agnxtnode(g, v))
if(!object_color(v,&c))
continue;
x=parseXdotwithattrs(v);
- draw_xdot(x,-0.1);
+ draw_xdot(x,-0.1f);
if(x)
freeXDot (x);
glColor4f(1,0,0,1);
posT = ED_posTail(e);
posH = ED_posHead(e);
- posT.z +=0.01;
- posH.z +=0.01;
+ posT.z +=0.01f;
+ posH.z +=0.01f;
draw_edge(&posT,&posH,getEdgeLength(e),0);
}
}