We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb35eac commit 8f4b247Copy full SHA for 8f4b247
1 file changed
Modules/_testcapimodule.c
@@ -2309,7 +2309,7 @@ test_string_to_double(PyObject *self) {
2309
result = PyOS_string_to_double(STR, NULL, NULL); \
2310
if (result == -1.0 && PyErr_Occurred()) \
2311
return NULL; \
2312
- if (result != expected) { \
+ if (result != (double)expected) { \
2313
msg = "conversion of " STR " to float failed"; \
2314
goto fail; \
2315
}
0 commit comments