From df3c762600974350a879aab38b90fba98085141e Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 25 Jun 2012 21:01:55 -0400 Subject: [PATCH] Fix Windows compilation issue --- qpdf/test_large_file.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qpdf/test_large_file.cc b/qpdf/test_large_file.cc index 880877f4..ec346514 100644 --- a/qpdf/test_large_file.cc +++ b/qpdf/test_large_file.cc @@ -46,7 +46,7 @@ int width = 0; int height = 0; static unsigned char* buf = 0; -static inline unsigned char get_pixel_color(int n, int row) +static inline unsigned char get_pixel_color(int n, size_t row) { return (n & (1 << (nstripes - 1 - row))) ? '\xc0' : '\x40'; } @@ -82,7 +82,7 @@ ImageChecker::write(unsigned char* data, size_t len) { for (size_t i = 0; i < len; ++i) { - int y = (this->offset + i) / width / stripesize; + size_t y = (this->offset + i) / width / stripesize; unsigned char color = get_pixel_color(n, y); if (data[i] != color) {