Merge pull request #180 from Xaeroxe/limit

Minor fix to macro definition
This commit is contained in:
bluss
2021-03-27 14:23:39 +01:00
committed by GitHub
+1 -1
View File
@@ -36,7 +36,7 @@ pub(crate) type LenUint = u32;
macro_rules! assert_capacity_limit {
($cap:expr) => {
if std::mem::size_of::<usize>() > std::mem::size_of::<LenUint>() {
if CAP > LenUint::MAX as usize {
if $cap > LenUint::MAX as usize {
panic!("ArrayVec: largest supported capacity is u32::MAX")
}
}