Fix build from oversight

This commit is contained in:
Matt Nadareski
2023-09-13 21:28:09 -04:00
parent 91185c4fe1
commit aa1d7d475c

View File

@@ -37,11 +37,7 @@ namespace BinaryObjectScanner.Printing
private static int GetMajorVersion(CommonHeader header)
{
#if NET48
uint majorVersion = header.Version;
#else
uint majorVersion = header.Version ?? 0;
#endif
if (majorVersion >> 24 == 1)
{
majorVersion = (majorVersion >> 12) & 0x0F;