Use more proper integer types and simplify loops
Use more proper integer types and simplify loops

Change-Id: Iba85b958c01c7bf6079180973379d4b7261a636e

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core