We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ce1dad commit abb054bCopy full SHA for abb054b
src/aml/mod.rs
@@ -1833,7 +1833,10 @@ where
1833
// TODO: not sure if we should convert buffers to integers if needed here?
1834
*target = self.do_field_read(field)?.as_integer()?;
1835
}
1836
- _ => panic!("Store to integer from unsupported object: {:?}", object),
+ _ => {
1837
+ let as_integer = object.to_integer(if self.dsdt_revision >= 2 { 8 } else { 4 })?;
1838
+ *target = as_integer;
1839
+ }
1840
},
1841
Object::BufferField { .. } => match object.gain_mut() {
1842
Object::Integer(value) => {
0 commit comments