Bug 1109886 - Use unsigned compare for bounds checking.  r=luke