Issue #20284: Fix a compilation warning on Windows
Explicitly cast the long to char.
This commit is contained in:
parent
29dacf2e97
commit
5474d0ba19
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue