static boolean overflow( void *map, void *ptr, unsigned bytes, unsigned bufsz )
{
- unsigned long used = (char *)ptr - (char *)map;
+ unsigned long used = (unsigned long) ((char *) ptr - (char *) map);
return (used + bytes) > bufsz;
}
if (prim->v[i]->vertex_id == 0xffff)
emit_vertex( vbuf, prim->v[i] );
- vbuf->element_map[vbuf->nr_elements++] = prim->v[i]->vertex_id;
+ vbuf->element_map[vbuf->nr_elements++] = (ushort) prim->v[i]->vertex_id;
}
}
if (prim->v[i]->vertex_id == 0xffff)
emit_vertex( vbuf, prim->v[i] );
- vbuf->element_map[vbuf->nr_elements++] = prim->v[i]->vertex_id;
+ vbuf->element_map[vbuf->nr_elements++] = (ushort) prim->v[i]->vertex_id;
}
}
if (prim->v[0]->vertex_id == 0xffff)
emit_vertex( vbuf, prim->v[0] );
- vbuf->element_map[vbuf->nr_elements++] = prim->v[0]->vertex_id;
+ vbuf->element_map[vbuf->nr_elements++] = (ushort) prim->v[0]->vertex_id;
}
vbuf->element_map,
vbuf->nr_elements,
vbuf->vertex_map,
- (vbuf->vertex_ptr - vbuf->vertex_map) / vbuf->vertex_size );
+ (unsigned) (vbuf->vertex_ptr - vbuf->vertex_map) / vbuf->vertex_size );
vbuf->nr_elements = 0;