mirror of
https://github.com/holub/mame
synced 2025-05-30 17:41:47 +03:00
Fix compile on 4.6.2 (no whatsnew)
This commit is contained in:
parent
f0823886a6
commit
b68594778f
@ -110,7 +110,7 @@ private:
|
|||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
inline bitstream_in::bitstream_in(const void *src, UINT32 srclength)
|
inline bitstream_in::bitstream_in(const void *src, UINT32 srclength)
|
||||||
: m_buffer(NULL),
|
: m_buffer(0),
|
||||||
m_bits(0),
|
m_bits(0),
|
||||||
m_read(reinterpret_cast<const UINT8 *>(src)),
|
m_read(reinterpret_cast<const UINT8 *>(src)),
|
||||||
m_doffset(0),
|
m_doffset(0),
|
||||||
|
@ -948,7 +948,7 @@ UINT32 chd_lzma_compressor::compress(const UINT8 *src, UINT32 srclen, UINT8 *des
|
|||||||
throw CHDERR_COMPRESSION_ERROR;
|
throw CHDERR_COMPRESSION_ERROR;
|
||||||
|
|
||||||
// run it
|
// run it
|
||||||
UINT32 complen = srclen;
|
SizeT complen = srclen;
|
||||||
res = LzmaEnc_MemEncode(encoder, dest, &complen, src, srclen, 0, NULL, &m_allocator, &m_allocator);
|
res = LzmaEnc_MemEncode(encoder, dest, &complen, src, srclen, 0, NULL, &m_allocator, &m_allocator);
|
||||||
if (res != SZ_OK)
|
if (res != SZ_OK)
|
||||||
throw CHDERR_COMPRESSION_ERROR;
|
throw CHDERR_COMPRESSION_ERROR;
|
||||||
@ -1035,8 +1035,8 @@ void chd_lzma_decompressor::decompress(const UINT8 *src, UINT32 complen, UINT8 *
|
|||||||
LzmaDec_Init(&m_decoder);
|
LzmaDec_Init(&m_decoder);
|
||||||
|
|
||||||
// decode
|
// decode
|
||||||
UINT32 consumedlen = complen;
|
SizeT consumedlen = complen;
|
||||||
UINT32 decodedlen = destlen;
|
SizeT decodedlen = destlen;
|
||||||
ELzmaStatus status;
|
ELzmaStatus status;
|
||||||
SRes res = LzmaDec_DecodeToBuf(&m_decoder, dest, &decodedlen, src, &consumedlen, LZMA_FINISH_END, &status);
|
SRes res = LzmaDec_DecodeToBuf(&m_decoder, dest, &decodedlen, src, &consumedlen, LZMA_FINISH_END, &status);
|
||||||
if ((res != SZ_OK && res != LZMA_STATUS_MAYBE_FINISHED_WITHOUT_MARK) || consumedlen != complen || decodedlen != destlen)
|
if ((res != SZ_OK && res != LZMA_STATUS_MAYBE_FINISHED_WITHOUT_MARK) || consumedlen != complen || decodedlen != destlen)
|
||||||
|
Loading…
Reference in New Issue
Block a user