Commit 816a1622 authored by Skip Montanaro's avatar Skip Montanaro

C++ compiler cleanup: proper casts

parent 2060d1bd
...@@ -2284,10 +2284,10 @@ pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string, ...@@ -2284,10 +2284,10 @@ pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string,
ptr = getstring(ptemplate, &n, &b); ptr = getstring(ptemplate, &n, &b);
if (ptr) { if (ptr) {
if (b == 1) { if (b == 1) {
literal = sre_literal_template(ptr, n); literal = sre_literal_template((unsigned char *)ptr, n);
} else { } else {
#if defined(HAVE_UNICODE) #if defined(HAVE_UNICODE)
literal = sre_uliteral_template(ptr, n); literal = sre_uliteral_template((Py_UNICODE *)ptr, n);
#endif #endif
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment