Commit 5474d0ba authored by Victor Stinner's avatar Victor Stinner

Issue #20284: Fix a compilation warning on Windows

Explicitly cast the long to char.
parent 29dacf2e
......@@ -529,7 +529,7 @@ formatchar(char *buf, size_t buflen, PyObject *v)
"%c requires an integer in range(256) or a single byte");
goto error;
}
buf[0] = ival;
buf[0] = (char)ival;
}
Py_XDECREF(w);
buf[1] = '\0';
......
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