-
-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Attempting to run the aml_tester against my machine's SSDT generated this error:
Error running test: ObjectNotOfExpectedType { expected: Reference, got: BufferField }
Taking a look at src/aml/mod.rs:808 onwards I can see the code expects a reference:
let result = if object.typ() == ObjectType::Reference {But I don't think Object::typ() can return ObjectType::Reference - it recurses through to find the least innermost non-Reference object's type.
On my machine, the failing code is generating a reference to a buffer field - so Object::typ() is returning ObjectType::BufferField.
Unless I'm being daft, the code on line 811 (object.clone().unwrap_reference()) is unreachable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels