Skip to content

Commit b88313b

Browse files
authored
NONE - Fix some regressions that make Linux compiles fail (#21)
2 parents dc9ee01 + aa7141b commit b88313b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/bspparser/bsp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ namespace BspParser {
207207
);
208208
}
209209

210-
const auto isGameLumpCompressed = lumpHeader.flags & Structs::GameLump::COMPRESSED_FLAG != 0;
210+
const auto isGameLumpCompressed = (lumpHeader.flags & Structs::GameLump::COMPRESSED_FLAG) != 0;
211211
const auto gameLumpSpan = data.subspan(lumpHeader.offset, lumpHeader.length);
212212

213213
const auto dictionaryData = SourceParsers::Internal::OffsetDataView(

packages/bspparser/enums/zip.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ namespace BspParser::Enums {
55
/**
66
* https://sourcegraph.com/github.com/lua9520/source-engine-2018-hl2_src@3bf9df6b2785fa6d951086978a3e66f49427166a/-/blob/public/zip_utils.h?L26:3-26:24
77
*/
8-
enum class ZipCompressionMethod : uint16_t {
9-
Unknown = -1,
10-
None = 0,
11-
LZMA = 14
8+
enum class ZipCompressionMethod : int16_t {
9+
Unknown = -1, None = 0, LZMA = 14
1210
};
1311
}

0 commit comments

Comments
 (0)