Skip to content

Commit f9f9923

Browse files
committed
heh, logic is hard
1 parent e5280e4 commit f9f9923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl<T, A: Alloc> RawVec<T, A> {
6565
RawVec {
6666
ptr: Unique::empty(),
6767
// FIXME(mark-i-m): use `cap` when ifs are allowed in const
68-
cap: [0, !0][(mem::size_of::<T>() != 0) as usize],
68+
cap: [0, !0][(mem::size_of::<T>() == 0) as usize],
6969
a,
7070
}
7171
}

0 commit comments

Comments
 (0)