We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3c84ad commit e02952cCopy full SHA for e02952c
library/alloc/src/collections/vec_deque.rs
@@ -33,7 +33,7 @@ mod tests;
33
const INITIAL_CAPACITY: usize = 7; // 2^3 - 1
34
const MINIMUM_CAPACITY: usize = 1; // 2 - 1
35
36
-const MAXIMUM_ZST_CAPACITY: usize = 1 << ((core::mem::size_of::<usize>() << 3) - 1); // Largest possible power of two
+const MAXIMUM_ZST_CAPACITY: usize = 1 << (core::mem::size_of::<usize>() * 8 - 1); // Largest possible power of two
37
38
/// A double-ended queue implemented with a growable ring buffer.
39
///
0 commit comments