Fix two uint to int comparisons warnings and unreferenced param warnings.