Skip to content

Commit f67b4e0

Browse files
committed
msp430: fix compilation of liballoc
1 parent 8255671 commit f67b4e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/liballoc/collections/vec_deque.rs

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ use vec::Vec;
3636

3737
const INITIAL_CAPACITY: usize = 7; // 2^3 - 1
3838
const MINIMUM_CAPACITY: usize = 1; // 2 - 1
39+
#[cfg(target_pointer_width = "16")]
40+
const MAXIMUM_ZST_CAPACITY: usize = 1 << (16 - 1); // Largest possible power of two
3941
#[cfg(target_pointer_width = "32")]
4042
const MAXIMUM_ZST_CAPACITY: usize = 1 << (32 - 1); // Largest possible power of two
4143
#[cfg(target_pointer_width = "64")]

0 commit comments

Comments
 (0)