fix: MSVC warnings about double-to-float conversions