diff options
author | Skip Montanaro <skip@pobox.com> | 2006-04-18 11:53:09 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2006-04-18 11:53:09 (GMT) |
commit | 816a162265ebc5f385ea86dc35f00764cab77e3e (patch) | |
tree | 4fb8e43f0b10df9978c78d2c3e1d136c38de7934 /Modules/_sre.c | |
parent | 2060d1bd278aec2c5cba6aa5dae660a5b0306517 (diff) | |
download | cpython-816a162265ebc5f385ea86dc35f00764cab77e3e.zip cpython-816a162265ebc5f385ea86dc35f00764cab77e3e.tar.gz cpython-816a162265ebc5f385ea86dc35f00764cab77e3e.tar.bz2 |
C++ compiler cleanup: proper casts
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r-- | Modules/_sre.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index 3943c40..2bab474 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 { |