Silence compiler warning about comparison of integers with different sign.

Refs #1777.
Merge pull request #4361 from jwpeterson/fix_warning

Silence compiler warning