Skip to content

Commit

Permalink
Fix warnings due to wrong printf format specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
madmann91 committed May 20, 2024
1 parent c59dd3c commit 235b400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/c_api_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ static inline void build_bvh(struct scene* scene) {
free(bboxes);
free(centers);
const uint64_t build_time = (ts1.tv_sec - ts0.tv_sec) * 1000 + (ts1.tv_nsec - ts0.tv_nsec) / 1000000;
printf("Built BVH with %zu node(s) in %lums\n", bvh3f_get_node_count(scene->bvh), build_time);
printf("Built BVH with %zu node(s) in %"PRIu64"\n", bvh3f_get_node_count(scene->bvh), build_time);
}

static inline void destroy_scene(struct scene* scene) {
Expand Down Expand Up @@ -326,7 +326,7 @@ static inline void render_image(
}
timespec_get(&ts1, TIME_UTC);
const uint64_t render_time = (ts1.tv_sec - ts0.tv_sec) * 1000 + (ts1.tv_nsec - ts0.tv_nsec) / 1000000;
printf("%zu intersection(s) found in %lums\n", intr_count, render_time);
printf("%zu intersection(s) found in %"PRIu64"\n", intr_count, render_time);
}

int main(int argc, char** argv) {
Expand Down

0 comments on commit 235b400

Please sign in to comment.