make sure expected values are interpreted as doubles
This commit is contained in:
parent
eb35eac3bc
commit
8f4b247a1d
|
@ -2309,7 +2309,7 @@ test_string_to_double(PyObject *self) {
|
|||
result = PyOS_string_to_double(STR, NULL, NULL); \
|
||||
if (result == -1.0 && PyErr_Occurred()) \
|
||||
return NULL; \
|
||||
if (result != expected) { \
|
||||
if (result != (double)expected) { \
|
||||
msg = "conversion of " STR " to float failed"; \
|
||||
goto fail; \
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue