aur/mp4parse_macro_mul.patch
2023-06-15 01:46:19 +02:00

13 lines
746 B
Diff

--- a/third_party/rust/mp4parse/src/lib.rs
+++ b/third_party/rust/mp4parse/src/lib.rs
@@ -3184,8 +3184,8 @@
type Output = $output;
fn mul(self, rhs: $rhs) -> Self::Output {
- static_assertions::const_assert!(<$output>::MAX <= <$inner>::MAX as u64);
- static_assertions::const_assert!(<$lhs>::MAX * <$rhs>::MAX <= <$output>::MAX);
+ static_assertions::const_assert!(<$output as UpperBounded>::MAX <= <$inner>::MAX as u64);
+ static_assertions::const_assert!(<$lhs as UpperBounded>::MAX * <$rhs as UpperBounded>::MAX <= <$output as UpperBounded>::MAX);
let lhs: $inner = self.get().into();
let rhs: $inner = rhs.get().into();