fixup gcc 4.4 warning (compare unsigned vs signed int)

Warnings reported here:
http://baldras.wesnoth.org:8080/job/Wesnoth/179/branch=master,compiler=4.4,label=Gentoo-64/consoleText