tdegrunt / bitset

deprecated - check out https://github.com/infusion/BitSet.js instead!
16 stars 7 forks source link

clear() doesn't work properly #6

Open NV opened 9 years ago

NV commented 9 years ago

http://requirebin.com/?gist=3a6e57bacfbfeb34a66d

var BitSet = require("bitset");
var s = new BitSet();
for (var i = 0; i <= 13; i++) {
  s.set(i);
}

s.get(0); // true, as expected.

s.clear(0);

s.get(0); // true, not good!
NV commented 9 years ago

atonparker/bitterset doesn’t have this problem, so I’ll use that for now. http://requirebin.com/?gist=106b3c60826a5aa996bf