From e83786985c3cf004f41a54724ce335312913ba73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 8 Sep 2014 09:50:57 +0000 Subject: oops, it's %lu rather than %ul svn path=/trunk/externals/iem/iemmatrix/; revision=17346 --- src/mtx_qhull/entry.h | 2 +- src/mtx_qhull/zhull.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mtx_qhull') diff --git a/src/mtx_qhull/entry.h b/src/mtx_qhull/entry.h index f524d56..956bab1 100644 --- a/src/mtx_qhull/entry.h +++ b/src/mtx_qhull/entry.h @@ -85,7 +85,7 @@ static void print_entry(const entry_t e) { switch(e.typ) { case INDEX: - printf("%ul", (unsigned long)(e.val.i)); + printf("%lu", (unsigned long)(e.val.i)); return; case POINTER: printf("0x%p", e.val.p); diff --git a/src/mtx_qhull/zhull.c b/src/mtx_qhull/zhull.c index 5291980..d238a9a 100644 --- a/src/mtx_qhull/zhull.c +++ b/src/mtx_qhull/zhull.c @@ -337,7 +337,7 @@ static void printHorizonEdges(list_t *horizon_fcts, for (i=0; i%ul",(unsigned long)c1[0],(unsigned long)c1[1]); + printf(", %lu->%lu",(unsigned long)c1[0],(unsigned long)c1[1]); } printf("\n"); } @@ -623,7 +623,7 @@ static void appendExteriorPoints(zhull_t *zh) { printf("\n"); for (i=0; ifacets); i++) { f=getFacetByIndex(zh->facets,i); - printf("distance of plane %ul, d=%5.2f\n",(unsigned long)i, + printf("distance of plane %lu, d=%5.2f\n",(unsigned long)i, distancePointPlane(center,f->plane)); if (distancePointPlane(center,f->plane)>-0.5f) { appendToList(&facet_delete_list,entry_makePointer(f)); @@ -702,9 +702,9 @@ void printZhull(const zhull_t * const zh) { printList(indices); freeList(&indices); */ - printf("zhull has %ul facets\n", (unsigned long)getLength(zh->facets)); + printf("zhull has %lu facets\n", (unsigned long)getLength(zh->facets)); for (fi=0; fifacets); fi++) { - printf("facet %ul<%p>: ",(unsigned long)fi,getFacetByIndex(zh->facets,fi)); + printf("facet %lu<%p>: ",(unsigned long)fi,getFacetByIndex(zh->facets,fi)); printFacet(zh,getFacetByIndex(zh->facets,fi)); } } @@ -725,6 +725,6 @@ void printFacet(const zhull_t * const zh, printf("neighbors: "); printList(indices); freeList(&indices); - printf("pt %ul with maxdist %5.2f\n",(unsigned long)(f->farthest_outside_point), f->maxdistance); + printf("pt %lu with maxdist %5.2f\n",(unsigned long)(f->farthest_outside_point), f->maxdistance); } -- cgit v1.2.1