Fix "conversion from 'double' to 'float'" warnings on MSVC2010.

Change-Id: I209d76fa2d87ad2eb540c750b8c4efb865441aae
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>