chore: correct the usage of a legacy numeric constant

This commit is contained in:
Dima S 2024-06-25 09:27:59 +02:00 committed by Lucas
parent 1e195156d7
commit d99c014bf7
2 changed files with 2 additions and 2 deletions

View File

@ -1337,7 +1337,7 @@ impl UntypedExpr {
match self { match self {
Self::BinOp { name, .. } => name.precedence(), Self::BinOp { name, .. } => name.precedence(),
Self::PipeLine { .. } => 0, Self::PipeLine { .. } => 0,
_ => std::u8::MAX, _ => u8::MAX,
} }
} }

View File

@ -731,7 +731,7 @@ impl<'a> Counterexample<'a> {
let jv = self.choices[j]; let jv = self.choices[j];
// Replace // Replace
if iv > 0 && jv <= u8::max_value() - iv { if iv > 0 && jv <= u8::MAX - iv {
self.binary_search_replace(0, iv, |v| vec![(i, v), (j, jv + (iv - v))]); self.binary_search_replace(0, iv, |v| vec![(i, v), (j, jv + (iv - v))]);
} }