Fix compiler warnings on Windows introduced in bpo-13617. (#2464)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 28 Jun 2017 06:55:22 +0000 (09:55 +0300)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2017 06:55:22 +0000 (09:55 +0300)
Modules/_ctypes/callproc.c
PC/_msi.c

index 6990a76d51ec09962ed90c016093b68adfdaf330..be757ef6f8525b96a87f9350d93eac939fa7820a 100644 (file)
@@ -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;
index a901f98a781de91e00ba53e0d88d2918097d705c..9c3f9f6e18a34b7d018906711f41a0e9e6e34928 100644 (file)
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -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;
         }