Permalink
Browse files

Use size_t format specifier

This should work for both 64-bit and 32-bit builds, where size_t is
different.

Signed-off-by: Tom Hughes <tomtheengineer@gmail.com>
  • Loading branch information...
thughes committed Apr 27, 2018
1 parent c8a3e93 commit 4b5d6f42852fc3d0d81eecba0ff29add5eb3d658
Showing with 2 additions and 2 deletions.
  1. +1 −1 modules/imgproc/NE10_boxfilter.c
  2. +1 −1 modules/imgproc/NE10_boxfilter.neon.c
@@ -368,7 +368,7 @@ void ne10_img_boxfilter_rgba8888_c (const ne10_uint8_t *src,
if (!dst_buf)
{
fprintf (stderr,
"ERROR: buffer allocation fails!\nallocation size: %lu\n",
"ERROR: buffer allocation fails!\nallocation size: %zu\n",
sizeof (ne10_uint8_t) *
src_sz.x *
src_sz.y *
@@ -274,7 +274,7 @@ void ne10_img_boxfilter_col_neon (const ne10_uint8_t *src,
if (!sum_row)
{
fprintf (stderr,
"ERROR: buffer allocation fails!\nallocation size: %lu\n",
"ERROR: buffer allocation fails!\nallocation size: %zu\n",
sizeof (ne10_uint32_t) *
src_sz.x *
RGBA_CH);

0 comments on commit 4b5d6f4

Please sign in to comment.