diff options
Diffstat (limited to 'mp4parse_macro_mul.patch')
-rw-r--r-- | mp4parse_macro_mul.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mp4parse_macro_mul.patch b/mp4parse_macro_mul.patch new file mode 100644 index 000000000000..10619f137f89 --- /dev/null +++ b/mp4parse_macro_mul.patch @@ -0,0 +1,13 @@ +--- a/output/icecat-102.12.0/third_party/rust/mp4parse/src/lib.rs ++++ b/output/icecat-102.12.0/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(); |