summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-10-30 17:27:13 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-10-30 17:27:13 (GMT)
commita6b9b071a3f9cd358a29846fb655e310d7af692a (patch)
tree6d6cdd85fc0db67129fbb07af51a171792ef8695 /Objects/unicodeobject.c
parentc99874da83d8b03e8257ab69dc2061df310f7b52 (diff)
downloadcpython-a6b9b071a3f9cd358a29846fb655e310d7af692a.zip
cpython-a6b9b071a3f9cd358a29846fb655e310d7af692a.tar.gz
cpython-a6b9b071a3f9cd358a29846fb655e310d7af692a.tar.bz2
Issue #19424: Fix a compiler warning
memcmp() just takes raw pointers
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index e6195fe..abaadcd 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;