Fix MSVC compile

MSVC's math.h includes sqrt(float) and sqrt(long double) overloads (for cmath), so it can't auto-convert integer parameters