mirror of
https://github.com/python/cpython.git
synced 2026-05-04 09:31:02 +00:00
C++ compiler cleanup: proper casts
This commit is contained in:
parent
2060d1bd27
commit
816a162265
1 changed files with 2 additions and 2 deletions
|
|
@ -2284,10 +2284,10 @@ pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string,
|
|||
ptr = getstring(ptemplate, &n, &b);
|
||||
if (ptr) {
|
||||
if (b == 1) {
|
||||
literal = sre_literal_template(ptr, n);
|
||||
literal = sre_literal_template((unsigned char *)ptr, n);
|
||||
} else {
|
||||
#if defined(HAVE_UNICODE)
|
||||
literal = sre_uliteral_template(ptr, n);
|
||||
literal = sre_uliteral_template((Py_UNICODE *)ptr, n);
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue