From a6b9b071a3f9cd358a29846fb655e310d7af692a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 30 Oct 2013 18:27:13 +0100 Subject: [PATCH] Issue #19424: Fix a compiler warning memcmp() just takes raw pointers --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e6195fe53b..abaadcda9f 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -10580,7 +10580,7 @@ PyUnicode_CompareWithASCIIString(PyObject* uni, const char* str) return -1; kind = PyUnicode_KIND(uni); if (kind == PyUnicode_1BYTE_KIND) { - char *data = PyUnicode_1BYTE_DATA(uni); + const void *data = PyUnicode_1BYTE_DATA(uni); Py_ssize_t len1 = PyUnicode_GET_LENGTH(uni); size_t len, len2 = strlen(str); int cmp; -- 2.40.0