Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Compress/BZip2/BZip2Encoder.h')
-rwxr-xr-xCPP/7zip/Compress/BZip2/BZip2Encoder.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/CPP/7zip/Compress/BZip2/BZip2Encoder.h b/CPP/7zip/Compress/BZip2/BZip2Encoder.h
index 02d4cde3..98cd20d6 100755
--- a/CPP/7zip/Compress/BZip2/BZip2Encoder.h
+++ b/CPP/7zip/Compress/BZip2/BZip2Encoder.h
@@ -70,9 +70,9 @@ public:
void SetPos(UInt32 bitPos)
{
m_Pos = bitPos / 8;
- m_BitPos = 8 - (bitPos & 7);
+ m_BitPos = 8 - ((int)bitPos & 7);
}
- void SetCurState(UInt32 bitPos, Byte curByte)
+ void SetCurState(int bitPos, Byte curByte)
{
m_BitPos = 8 - bitPos;
m_CurByte = curByte;
@@ -103,7 +103,7 @@ private:
UInt32 m_CRCs[1 << kNumPassesMax];
UInt32 m_NumCrcs;
- int m_BlockIndex;
+ UInt32 m_BlockIndex;
void WriteBits2(UInt32 value, UInt32 numBits);
void WriteByte2(Byte b);
@@ -128,7 +128,7 @@ public:
UInt64 m_PackSize;
Byte MtPad[1 << 8]; // It's pad for Multi-Threading. Must be >= Cache_Line_Size.
- HRes Create();
+ HRESULT Create();
void FinishStream(bool needLeave);
DWORD ThreadFunc();
#endif
@@ -189,7 +189,7 @@ public:
void WriteCRC(UInt32 v);
#ifdef COMPRESS_BZIP2_MT
- HRes Create();
+ HRESULT Create();
void Free();
#endif