Skip to content

Commit

Permalink
bug fix to borrowck::indexed_set: wanted bit-count not byte-count.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed May 24, 2016
1 parent 71af40b commit c48650d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_borrowck/indexed_set.rs
Expand Up @@ -57,7 +57,7 @@ impl<T: Idx> fmt::Debug for IdxSet<T> {

impl<T: Idx> OwnIdxSet<T> {
fn new(init: Word, universe_size: usize) -> Self {
let bits_per_word = mem::size_of::<Word>();
let bits_per_word = mem::size_of::<Word>() * 8;
let num_words = (universe_size + (bits_per_word - 1)) / bits_per_word;
OwnIdxSet {
_pd: Default::default(),
Expand Down

0 comments on commit c48650d

Please sign in to comment.