Compiler fix

This commit is contained in:
Alex Beregszaszi 2022-12-03 00:32:07 +01:00 committed by Rodrigo Q. Saramago
parent f4f38ecb0e
commit eed10c5d81
No known key found for this signature in database
GPG Key ID: 9B36B2525704A359

View File

@ -777,7 +777,7 @@ LinkerObject const& Assembly::assemble(bool eof) const
auto const dataLength = ret.bytecode.size() - dataStart;
if (eof)
{
assertThrow(dataLength >= 0 && dataLength <= 0xffff, AssemblyException, "Invalid data section size.");
assertThrow(/*dataLength >= 0 && */ dataLength <= 0xffff, AssemblyException, "Invalid data section size.");
toBigEndian(uint16_t(dataLength), eofDataLength);
}