Skip to content

Commit ccdc09e

Browse files
Fix compiler warnings on Windows introduced in bpo-13617. (#2464)
1 parent f7eae0a commit ccdc09e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/_ctypes/callproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ The handle may be used to locate exported functions in this\n\
12491249
module.\n";
12501250
static PyObject *load_library(PyObject *self, PyObject *args)
12511251
{
1252-
WCHAR *name;
1252+
const WCHAR *name;
12531253
PyObject *nameobj;
12541254
PyObject *ignored;
12551255
HMODULE hMod;

PC/_msi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ summary_setproperty(msiobj* si, PyObject *args)
594594
return NULL;
595595

596596
if (PyUnicode_Check(data)) {
597-
WCHAR *value = _PyUnicode_AsUnicode(data);
597+
const WCHAR *value = _PyUnicode_AsUnicode(data);
598598
if (value == NULL) {
599599
return NULL;
600600
}

0 commit comments

Comments
 (0)