&0xFFFFFF wouldn't have considered the fact that it's a signed integer, I think. Not 100% sure though. I wasn't the one who came up with that solution, maybe someone else knows it better than me? :)