drslump/Bits-js — Issue #1: Bitwise Operations Leading To Signed Integers
Author: jorangreef
Created: 2011-11-12 08:46:09+00:00
State: open

The set method uses "ofs >> 5" to determine the bucket index, but this could lead to negative indexes for large numbers such as "4294965296" (-63) due to the way Javascript casts integers when performing bitwise operations. The index should be calculated instead as "~~(bit / 32)".