Changed int type and added cast to quiet compiler.
Authored by: dwarren 2012-06-04
Parent: [r7545]
Child: [r7547]