From 05fb2fb1c04f485efcaaf9ea4ff2d926a830a383 Mon Sep 17 00:00:00 2001 From: Ilia Popov Date: Wed, 22 Jun 2011 00:29:31 +0200 Subject: [PATCH] Fixed type mismatches in printf's in array2D.h --- rtengine/array2D.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtengine/array2D.h b/rtengine/array2D.h index 197790d30..71e72e533 100644 --- a/rtengine/array2D.h +++ b/rtengine/array2D.h @@ -174,7 +174,7 @@ public: void operator()(int w, int h, unsigned int flgs = 0) { flags = flgs; if (flags & ARRAY2D_VERBOSE) { - printf("got init request %dx%d flags=%d\n", w, h, flags); + printf("got init request %dx%d flags=%u\n", w, h, flags); printf("previous was data %p ptr %p \n", data, ptr); } if (lock) // our object was locked so don't allow a change. @@ -193,7 +193,7 @@ public: void operator()(int w, int h, T* copy, unsigned int flgs = 0) { flags = flgs; if (flags & ARRAY2D_VERBOSE) { - printf("got init request %dx%d flags=%d\n", w, h, flags); + printf("got init request %dx%d flags=%u\n", w, h, flags); printf("previous was data %p ptr %p \n", data, ptr); } if (lock) // our object was locked so don't allow a change. @@ -258,7 +258,7 @@ public: array2D & operator[](size_t index) { if (index < 0 || index >= num) { - printf("index %d is out of range[0..%d]", index, num - 1); + printf("index %zu is out of range[0..%zu]", index, num - 1); raise( SIGSEGV); } return list[index];