Commit 8f4b247a authored by Benjamin Peterson's avatar Benjamin Peterson

make sure expected values are interpreted as doubles

parent eb35eac3
......@@ -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; \
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment