From 37f502e4592a2b05035eae4aa560fe15701526d9 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 24 Dec 2017 04:57:19 -0600 Subject: I guess I forgot a qsort function cast --- src/graphics_c3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/graphics_c3.c b/src/graphics_c3.c index 5008f8e..41fbfcf 100644 --- a/src/graphics_c3.c +++ b/src/graphics_c3.c @@ -432,7 +432,7 @@ void draw_screen() { for(i=0;global.shape[i];i++) { zs[i].d=shitdist(zs[i].s,global.camera.p); } - qsort(&zs,i,sizeof(zs[0]),(__compar_fn_t)compar);//sort these zs structs based on d. + qsort(&zs,i,sizeof(zs[0]),(int (*)(const void *,const void *))compar);//sort these zs structs based on d. //draw all triangles if(global.debug) { //snprintf(tmp,sizeof(tmp)-1,"selected object: %s",global.selected_object); -- cgit v1.2.3