bug fix to borrowck::indexed_set
: wanted bit-count not byte-count.
This commit is contained in:
parent
71af40bb9d
commit
c48650d14e
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ impl<T: Idx> fmt::Debug for IdxSet<T> {
|
||||||
|
|
||||||
impl<T: Idx> OwnIdxSet<T> {
|
impl<T: Idx> OwnIdxSet<T> {
|
||||||
fn new(init: Word, universe_size: usize) -> Self {
|
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;
|
let num_words = (universe_size + (bits_per_word - 1)) / bits_per_word;
|
||||||
OwnIdxSet {
|
OwnIdxSet {
|
||||||
_pd: Default::default(),
|
_pd: Default::default(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue