util/cutils: Fix incorrect integer->float conversion caught by clang