Fix conversion warning in enforce_precision on MSVC