Skip to content

Commit

Permalink
Merge branch 'rust-vmm:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
lucido-simon authored Jun 26, 2024
2 parents dec7c59 + 0ec1948 commit f43f57a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ pub type Word = u16;

impl Aml for Word {
fn to_aml_bytes(&self, sink: &mut dyn AmlSink) {
if *self <= Byte::max_value().into() {
if *self <= Byte::MAX.into() {
(*self as Byte).to_aml_bytes(sink);
} else {
sink.byte(WORDPREFIX);
Expand All @@ -204,7 +204,7 @@ pub type DWord = u32;

impl Aml for DWord {
fn to_aml_bytes(&self, sink: &mut dyn AmlSink) {
if *self <= Word::max_value().into() {
if *self <= Word::MAX.into() {
(*self as Word).to_aml_bytes(sink);
} else {
sink.byte(DWORDPREFIX);
Expand All @@ -217,7 +217,7 @@ pub type QWord = u64;

impl Aml for QWord {
fn to_aml_bytes(&self, sink: &mut dyn AmlSink) {
if *self <= DWord::max_value().into() {
if *self <= DWord::MAX.into() {
(*self as DWord).to_aml_bytes(sink);
} else {
sink.byte(QWORDPREFIX);
Expand Down

0 comments on commit f43f57a

Please sign in to comment.