fix warning comparing uint to int

Authored by sitter on Nov 9 2017, 1:10 PM.