01e6ac2
--- netpbm-10.35/converter/other/xwdtopnm.c.xwdfix	2006-09-18 13:24:50.000000000 +0200
01e6ac2
+++ netpbm-10.35/converter/other/xwdtopnm.c	2006-09-18 13:27:26.000000000 +0200
01e6ac2
@@ -945,7 +945,7 @@ getpix(pixelReader * const rdrP) {
cc79db1
             unsigned long const bitsToTakeMask = lsbmask[nBitsToTake];
cc79db1
                 /* E.g. if nbitsToTake is 4, this is 0x0000000F */
cc79db1
 
cc79db1
-            unsigned long bitsToTake;
cc79db1
+            unsigned int bitsToTake;
01e6ac2
                 /* The actual bits we take, in the 'nBitsToTake' low bits */
cc79db1
 
cc79db1
             assert(nBitsToTake <= 32);