aboutsummaryrefslogtreecommitdiff
path: root/C/7zArcIn.c
diff options
context:
space:
mode:
Diffstat (limited to 'C/7zArcIn.c')
-rw-r--r--C/7zArcIn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/C/7zArcIn.c b/C/7zArcIn.c
index 43fa7c2..23f2949 100644
--- a/C/7zArcIn.c
+++ b/C/7zArcIn.c
@@ -1,5 +1,5 @@
1/* 7zArcIn.c -- 7z Input functions 1/* 7zArcIn.c -- 7z Input functions
22023-05-11 : Igor Pavlov : Public domain */ 22023-09-07 : Igor Pavlov : Public domain */
3 3
4#include "Precomp.h" 4#include "Precomp.h"
5 5
@@ -301,7 +301,7 @@ static SRes RememberBitVector(CSzData *sd, UInt32 numItems, const Byte **v)
301 301
302static UInt32 CountDefinedBits(const Byte *bits, UInt32 numItems) 302static UInt32 CountDefinedBits(const Byte *bits, UInt32 numItems)
303{ 303{
304 Byte b = 0; 304 unsigned b = 0;
305 unsigned m = 0; 305 unsigned m = 0;
306 UInt32 sum = 0; 306 UInt32 sum = 0;
307 for (; numItems != 0; numItems--) 307 for (; numItems != 0; numItems--)
@@ -312,7 +312,7 @@ static UInt32 CountDefinedBits(const Byte *bits, UInt32 numItems)
312 m = 8; 312 m = 8;
313 } 313 }
314 m--; 314 m--;
315 sum += ((b >> m) & 1); 315 sum += (UInt32)((b >> m) & 1);
316 } 316 }
317 return sum; 317 return sum;
318} 318}