I think the OpenHashSet now returns -1 if vid is not found rather than returning ~POSITION_MASK. I discovered this after encountering a bug in my code where ind kept getting set to a large constant number whose bit representation turned out to be -1 & POSITION_MASK.