LibACPI: Ensure reading QWordData compiles correctly

Later when finish_operand starts taking Object&& the compiler gets
confused and required this to be cast to u64 explicitly.
This commit is contained in:
Undefine authored and Sönke Holz committed 2026-11-07 13:27:30 +01:00
1 parent 7d522782c2
commit b408275768
1 file changed
+1 -1
+1 -1
View File
@@ -347,7 +347,7 @@ ErrorOr<IterationDecision> Interpreter::read_operand(TableStream& stream, Operan
case OperandType::QWordData: {
auto value = TRY(stream.read_value<u64>());
DEBUG_LOG("Reading qword... ({})", value);
TRY(top_opcode_frame.finish_operand(value, stream.offset()));
TRY(top_opcode_frame.finish_operand(static_cast<u64>(value), stream.offset()));
return IterationDecision::Continue;
}
case OperandType::String: {