Followup for Bug 840317: use an unsigned loop variable when iterating up to an unsigned value, to fix warnings-as-errors build error. r=bustage,trivial CLOSED TREE
backout 69277e48526c (Bug 839865) due to reftest orange on a CLOSED TREE