quiet -Wdouble-promotion warnings

This commit is contained in:
2011-11-11 12:00:08 +00:00
parent eb7bccb39a
commit 094c9799f9
56 changed files with 300 additions and 297 deletions

View File

@@ -945,7 +945,7 @@ static int Quaternion_setAngle(QuaternionObject *self, PyObject *value, void *UN
angle= PyFloat_AsDouble(value);
if (angle==-1.0 && PyErr_Occurred()) { /* parsed item not a number */
if (angle==-1.0f && PyErr_Occurred()) { /* parsed item not a number */
PyErr_SetString(PyExc_TypeError,
"Quaternion.angle = value: float expected");
return -1;