Fixes a double->float conversion warning