2015-08-11 08:11:35 +00:00
|
|
|
diff --git a/converter/other/xwdtopnm.c b/converter/other/xwdtopnm.c
|
|
|
|
index d49a2b0..45d66b4 100644
|
|
|
|
--- a/converter/other/xwdtopnm.c
|
|
|
|
+++ b/converter/other/xwdtopnm.c
|
|
|
|
@@ -1025,7 +1025,7 @@ pixelReader_getbits(pixelReader * const rdrP,
|
2006-02-14 14:25:38 +00:00
|
|
|
unsigned long const bitsToTakeMask = lsbmask[nBitsToTake];
|
|
|
|
/* E.g. if nbitsToTake is 4, this is 0x0000000F */
|
|
|
|
|
|
|
|
- unsigned long bitsToTake;
|
|
|
|
+ unsigned int bitsToTake;
|
2006-09-18 11:55:07 +00:00
|
|
|
/* The actual bits we take, in the 'nBitsToTake' low bits */
|
2006-02-14 14:25:38 +00:00
|
|
|
|
|
|
|
assert(nBitsToTake <= 32);
|