chore: correct the usage of a legacy numeric constant
This commit is contained in:
parent
1e195156d7
commit
d99c014bf7
|
@ -1337,7 +1337,7 @@ impl UntypedExpr {
|
|||
match self {
|
||||
Self::BinOp { name, .. } => name.precedence(),
|
||||
Self::PipeLine { .. } => 0,
|
||||
_ => std::u8::MAX,
|
||||
_ => u8::MAX,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -731,7 +731,7 @@ impl<'a> Counterexample<'a> {
|
|||
let jv = self.choices[j];
|
||||
|
||||
// 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))]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue