Fix too small loop variables
Fix too small loop variables

These loop variables had narrower type than the iteration's upper bound.

Change-Id: I39bc481450dafec153a93d540e64585ec6125401

LibreOffice/libfreehand,LibreOffice/libfreehand,LibreOffice/libfreehand,LibreOffice/libfreehand