diff options
author | Jay Berkenbilt <ejb@ql.org> | 2012-06-26 03:01:55 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-06-26 03:01:55 +0200 |
commit | df3c762600974350a879aab38b90fba98085141e (patch) | |
tree | 43d74e7fc1cbd555891aca66fcbff42d10702695 | |
parent | 1a3e88ca099bb066a61dcfd0711fdb3b3bfe3eb0 (diff) | |
download | qpdf-df3c762600974350a879aab38b90fba98085141e.tar.zst |
Fix Windows compilation issue
-rw-r--r-- | qpdf/test_large_file.cc | 4 |
1 files 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) { |