From c48650d14e2a64c8966972f4f8bc9559a11a11be Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Tue, 24 May 2016 12:35:35 +0200 Subject: [PATCH] bug fix to `borrowck::indexed_set`: wanted bit-count not byte-count. --- src/librustc_borrowck/indexed_set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_borrowck/indexed_set.rs b/src/librustc_borrowck/indexed_set.rs index c37f8e09e0a..bf5eb10b8ed 100644 --- a/src/librustc_borrowck/indexed_set.rs +++ b/src/librustc_borrowck/indexed_set.rs @@ -57,7 +57,7 @@ impl fmt::Debug for IdxSet { impl OwnIdxSet { fn new(init: Word, universe_size: usize) -> Self { - let bits_per_word = mem::size_of::(); + let bits_per_word = mem::size_of::() * 8; let num_words = (universe_size + (bits_per_word - 1)) / bits_per_word; OwnIdxSet { _pd: Default::default(),