From: Skip Montanaro Date: Tue, 18 Apr 2006 11:53:09 +0000 (+0000) Subject: C++ compiler cleanup: proper casts X-Git-Tag: v2.5a2~132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=816a162265ebc5f385ea86dc35f00764cab77e3e;p=python C++ compiler cleanup: proper casts --- diff --git a/Modules/_sre.c b/Modules/_sre.c index 3943c40b81..2bab474df8 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -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 {