Fixed some warnings about signedness conversion/comparison.