Skip to content

Commit 9ac0b20

Browse files
authored
Merge pull request #180 from Xaeroxe/limit
Minor fix to macro definition
2 parents c318a3d + 0bc7ffc commit 9ac0b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub(crate) type LenUint = u32;
3636
macro_rules! assert_capacity_limit {
3737
($cap:expr) => {
3838
if std::mem::size_of::<usize>() > std::mem::size_of::<LenUint>() {
39-
if CAP > LenUint::MAX as usize {
39+
if $cap > LenUint::MAX as usize {
4040
panic!("ArrayVec: largest supported capacity is u32::MAX")
4141
}
4242
}

0 commit comments

Comments
 (0)