mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
13 lines
746 B
Diff
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();
|