Commit df3c762600974350a879aab38b90fba98085141e

Authored by Jay Berkenbilt
1 parent 1a3e88ca

Fix Windows compilation issue

Showing 1 changed file with 2 additions and 2 deletions
qpdf/test_large_file.cc
... ... @@ -46,7 +46,7 @@ int width = 0;
46 46 int height = 0;
47 47 static unsigned char* buf = 0;
48 48  
49   -static inline unsigned char get_pixel_color(int n, int row)
  49 +static inline unsigned char get_pixel_color(int n, size_t row)
50 50 {
51 51 return (n & (1 << (nstripes - 1 - row))) ? '\xc0' : '\x40';
52 52 }
... ... @@ -82,7 +82,7 @@ ImageChecker::write(unsigned char* data, size_t len)
82 82 {
83 83 for (size_t i = 0; i < len; ++i)
84 84 {
85   - int y = (this->offset + i) / width / stripesize;
  85 + size_t y = (this->offset + i) / width / stripesize;
86 86 unsigned char color = get_pixel_color(n, y);
87 87 if (data[i] != color)
88 88 {
... ...