diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-06-28 09:55:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-28 09:55:22 +0300 |
commit | ccdc09ed1ebea7d7c6b41548132aa08bd797bfe8 (patch) | |
tree | 6c39c86a54ebb2c473fe4a27e5c07d29bb2bdf6f | |
parent | f7eae0adfcd4c50034281b2c69f461b43b68db84 (diff) | |
download | cpython-git-ccdc09ed1ebea7d7c6b41548132aa08bd797bfe8.tar.gz |
Fix compiler warnings on Windows introduced in bpo-13617. (#2464)
-rw-r--r-- | Modules/_ctypes/callproc.c | 2 | ||||
-rw-r--r-- | PC/_msi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index 6990a76d51..be757ef6f8 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -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; } |