bitset icon indicating copy to clipboard operation
bitset copied to clipboard

Clear bit will not work correctly

Open nurulc opened this issue 10 years ago • 0 comments

clear: (pos) ->
       @store[@wordIndex(pos)] &= (0xFF ^ (1 << pos))

code should be

clear: (pos) ->
      @store[@wordIndex(pos)] &= (-1 ^ (1 << pos))

nurulc avatar Dec 29 '15 19:12 nurulc