bramstein / bit-array

JavaScript implementation of bit arrays.
78 stars 18 forks source link

[BUG] Count is not accurate. #12

Closed AmitMY closed 7 years ago

AmitMY commented 9 years ago

Running a binary progam, and noticed that COUNT is not accurate. this is my code: console.log(possible.toString()+" count is: "+possible.count()+" and i is:"+i); and this is the output: 011111111 count is: 31 and i is:8 you see that there are only 8 ones and still it says 31.