Cleanup, LineArt: Fix MSVC compiler warnings.

Currently 3 of the printf lines use the format specifier "%lu" for data
of type size_t instead of "%zu". While this works, this creates compiler
warnings.

This diff fixes those warnings by using the correct format specifier.
Tested using MSVC, but should be correct on any compliant compiler.

Reviewed By: Sebastian Parborg

Differential Revision: http://developer.blender.org/D10761
This commit is contained in:
Nikhil Shringarpurey 2021-03-22 11:28:04 +01:00 committed by Sebastian Parborg
parent a506f87c90
commit 414596cd83
1 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,7 @@ void lineart_count_and_print_render_buffer_memory(LineartRenderBuffer *rb)
count_this++;
sum_this += LRT_MEMORY_POOL_64MB;
}
printf("LANPR Memory allocated %lu Standalone nodes, total %lu Bytes.\n", count_this, sum_this);
printf("LANPR Memory allocated %zu Standalone nodes, total %zu Bytes.\n", count_this, sum_this);
total += sum_this;
sum_this = 0;
count_this = 0;
@ -222,7 +222,7 @@ void lineart_count_and_print_render_buffer_memory(LineartRenderBuffer *rb)
count_this++;
sum_this += reln->element_count * sizeof(LineartEdge);
}
printf(" allocated %lu edge blocks, total %lu Bytes.\n", count_this, sum_this);
printf(" allocated %zu edge blocks, total %zu Bytes.\n", count_this, sum_this);
total += sum_this;
sum_this = 0;
count_this = 0;
@ -231,7 +231,7 @@ void lineart_count_and_print_render_buffer_memory(LineartRenderBuffer *rb)
count_this++;
sum_this += reln->element_count * rb->triangle_size;
}
printf(" allocated %lu triangle blocks, total %lu Bytes.\n", count_this, sum_this);
printf(" allocated %zu triangle blocks, total %zu Bytes.\n", count_this, sum_this);
total += sum_this;
sum_this = 0;
count_this = 0;