bugfix: max values and masks for bit length >=32 was always 0
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Aug 2011 08:43:28 +0000 (08:43 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Aug 2011 08:43:28 +0000 (08:43 +0000)
HLT/BASE/AliHLTDataDeflaterSimple.h

index 991a76c..845fe28 100644 (file)
@@ -46,8 +46,8 @@ public:
 
     AliHLTDataDeflaterParameter(const char* name, int length, int reduced)
       : fName(name), fFullBitLength(length), fReducedBitLength(reduced)
-      , fMax((0x1<<length)-1), fMaxReduced((0x1<<reduced)-1)
-      , fMask((0x1<<length)-1), fMaskReduced((0x1<<reduced)-1) 
+      , fMax((((AliHLTUInt64_t)0x1)<<length)-1), fMaxReduced((((AliHLTUInt64_t)0x1)<<reduced)-1)
+      , fMask(fMask), fMaskReduced(fMaskReduced) 
       , fValueCount(0), fBitCount(0) {}
 
     AliHLTDataDeflaterParameter(const AliHLTDataDeflaterParameter& src)