Fix build

This commit is contained in:
Matt Nadareski
2023-09-21 23:43:48 -04:00
parent b7a081824c
commit bd9258d9fa

View File

@@ -101,10 +101,10 @@ namespace SabreTools.Compression.MSZIP
private static DeflateBlockHeader ReadDeflateBlockHeader(BitStream input)
{
var header = new DeflateBlockHeader();
header.BFINAL = input.ReadBitLSB() != 0x01;
byte btype = input.ReadBitLSB() ?? 0x01;
header.BFINAL = input.ReadBit() != 0x01;
byte btype = input.ReadBit() ?? 0x01;
btype <<= 1;
btype |= input.ReadBitLSB() ?? 0x01;
btype |= input.ReadBit() ?? 0x01;
header.BTYPE = (CompressionType)btype;
return header;
}