tyler/bitset

Basic functionality does not work (on 1.9.2), on 64-bit machine

Closed this issue · 1 comments

b = Bitset.new(16000)
[5343, 15661, 1500, 6225].each {|i| b[i] = true }
b.to_s.count("1") # => 8 (instead of 4)
b.cardinality # => 36 (instead of 4)
(0...16000).select{|x| b[x]} # => [1500, 1532, 5343, 5375, 6225, 6257, 15629, 15661]

brendon9x graciously fixed this bug here: 8efca8f

New release forthcoming.