diff options
Diffstat (limited to 'editor/pnmcat.c')
-rw-r--r-- | editor/pnmcat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/pnmcat.c b/editor/pnmcat.c index a26dcf3e..217f6b57 100644 --- a/editor/pnmcat.c +++ b/editor/pnmcat.c @@ -367,7 +367,8 @@ getPbmImageInfo(struct imgInfo const img[], switch (backcolor) { case BACK_AUTO: { bit bgBit; - img2[i].proberow = pbm_allocrow_packed(img[i].cols+7); + img2[i].proberow = + pbm_allocrow_packed((unsigned int)img[i].cols + 7); pbm_readpbmrow_bitoffset( img[i].ifP, img2[i].proberow, img[i].cols, img[i].format, img2[i].offset % 8); |