aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2014-09-08 09:50:57 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2014-09-08 09:50:57 +0000
commite83786985c3cf004f41a54724ce335312913ba73 (patch)
tree42acf44e4889fb96a4815c7caf058eccbb714413
parentf180cc819f0ae6312dde6270314f85723e90f280 (diff)
oops, it's %lu rather than %ul
svn path=/trunk/externals/iem/iemmatrix/; revision=17346
-rw-r--r--src/mtx_qhull/entry.h2
-rw-r--r--src/mtx_qhull/zhull.c10
2 files changed, 6 insertions, 6 deletions
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<getLength(*horizon_fcts_edges); i++) {
getHorizonEdgeByIndex(c1, *horizon_fcts, *horizon_fcts_edges,
*other_horizon_edges, i);
- printf(", %ul->%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; i<getLength(zh->facets); 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; fi<getLength(zh->facets); 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);
}