Fix trivial signed/unsigned comparison warnings