mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Fix compiler warnings on Windows introduced in bpo-13617. (#2464)
This commit is contained in:
parent
f7eae0adfc
commit
ccdc09ed1e
2 changed files with 2 additions and 2 deletions
|
|
@ -1249,7 +1249,7 @@ The handle may be used to locate exported functions in this\n\
|
|||
module.\n";
|
||||
static PyObject *load_library(PyObject *self, PyObject *args)
|
||||
{
|
||||
WCHAR *name;
|
||||
const WCHAR *name;
|
||||
PyObject *nameobj;
|
||||
PyObject *ignored;
|
||||
HMODULE hMod;
|
||||
|
|
|
|||
|
|
@ -594,7 +594,7 @@ summary_setproperty(msiobj* si, PyObject *args)
|
|||
return NULL;
|
||||
|
||||
if (PyUnicode_Check(data)) {
|
||||
WCHAR *value = _PyUnicode_AsUnicode(data);
|
||||
const WCHAR *value = _PyUnicode_AsUnicode(data);
|
||||
if (value == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue