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