Fixed a couple 'unsigned' warnings while looping through results.