Squashes 4 -Wsign-conversion warnings. Note that this also changes the sentinel
from `-1` to `UINT_MAX`.
unsigned selnode_id;
unsigned seledge_id;
unsigned nodelabel_id;
- int edgelabel_id;
+ unsigned edgelabel_id;
}topviewcache;
typedef struct {
}
static void cacheEdgeLabels(Agraph_t * g,topview* t)
{
- if(t->cache.edgelabel_id!=-1) /*clean existing cache*/
+ if (t->cache.edgelabel_id != UINT_MAX) // clean existing cache
glDeleteLists(t->cache.edgelabel_id,1);
t->cache.edgelabel_id=glGenLists(1);
glNewList(t->cache.edgelabel_id,GL_COMPILE);