Fixed unsigned signed conversion warnings