This offset is not the offset of the counting bloom in the scaling bloom, it's the offset of a particular hash functions bits into a counting bloom, so it doesn't help to change this to long. Notice that this offset is only used to calculate index, which is still "unsigned int".