Fixed compilation warnings: float to int conversions

2 files changed