From 0324aa326be3347cdcd39c639917ba3d33a78b14 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 3 May 2013 19:05:46 +0000 Subject: Fix git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@1899 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/ppm/ppmtowinicon.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'converter/ppm') diff --git a/converter/ppm/ppmtowinicon.c b/converter/ppm/ppmtowinicon.c index b9a64cbd..d7f12dd0 100644 --- a/converter/ppm/ppmtowinicon.c +++ b/converter/ppm/ppmtowinicon.c @@ -203,6 +203,8 @@ createAndBitmap (gray ** const ba, int const cols, int const rows, * How wide should the u1 string for each row be? * each byte is 8 pixels, but must be a multiple of 4 bytes. */ + +#define ROUNDUP(X,M) (((X)+(M)-1)/(M)*(M)) unsigned int const xBytes = ROUNDUP(cols, 32)/8; ICON_bmp icBitmap; int y,x; -- cgit 1.4.1