bugfix: fix compiler warning: converting double to float.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>