Shawn,

Nice one. My solution was a lot more complicated.

On an aesthetic note I might change (-1) to &FFFFFFFF. Not sure.