Fixed another signed/unsigned comparison warning from older compilers that can't infer the 'best' template instantiation types.