fix build when using clang
fix build when using clang

This is flagged (rightly so) by clang -Wimplicit-int-float-conversion.

gerdstolpmann/ocaml,gerdstolpmann/ocaml,gerdstolpmann/ocaml,gerdstolpmann/ocaml,gerdstolpmann/ocaml