diff options
author | epoch <epoch@hacking.allowed.org> | 2017-12-24 04:57:19 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2017-12-24 04:57:19 -0600 |
commit | 37f502e4592a2b05035eae4aa560fe15701526d9 (patch) | |
tree | 881eb906dae20060da7e1b1e980de5940108659c /src | |
parent | d8bcbb131454ca1068bc6fa8a11fdabdaf86988b (diff) | |
download | hackvr-37f502e4592a2b05035eae4aa560fe15701526d9.tar.gz hackvr-37f502e4592a2b05035eae4aa560fe15701526d9.zip |
I guess I forgot a qsort function cast
Diffstat (limited to 'src')
-rw-r--r-- | src/graphics_c3.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |