Fix some bad int/double conversions

Reported by SonarQube

Change-Id: I612ffc9b459e8cdf9c0d043dfaa1633cdefc6c1d
Signed-off-by: Mickael Istria <mistria@redhat.com>
2 files changed