setbit can return 0.