Cleanup: use float versions of functions when in/output are floats

This commit is contained in:
2014-09-17 14:11:37 +10:00
parent e7f495d8a0
commit 3a40aed3d5
49 changed files with 212 additions and 211 deletions

View File

@@ -947,7 +947,7 @@ static PyObject *Quaternion_magnitude_get(QuaternionObject *self, void *UNUSED(c
if (BaseMath_ReadCallback(self) == -1)
return NULL;
return PyFloat_FromDouble(sqrt(dot_qtqt(self->quat, self->quat)));
return PyFloat_FromDouble(sqrtf(dot_qtqt(self->quat, self->quat)));
}
PyDoc_STRVAR(Quaternion_angle_doc,