Skip to content

Commit

Permalink
heh, logic is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Apr 29, 2018
1 parent e5280e4 commit f9f9923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/raw_vec.rs
Expand Up @@ -65,7 +65,7 @@ impl<T, A: Alloc> RawVec<T, A> {
RawVec {
ptr: Unique::empty(),
// FIXME(mark-i-m): use `cap` when ifs are allowed in const
cap: [0, !0][(mem::size_of::<T>() != 0) as usize],
cap: [0, !0][(mem::size_of::<T>() == 0) as usize],
a,
}
}
Expand Down

0 comments on commit f9f9923

Please sign in to comment.