[Python-checkins] r45529 - python/trunk/Modules/_sre.c
skip.montanaro
python-checkins at python.org
Tue Apr 18 13:53:09 CEST 2006
Author: skip.montanaro
Date: Tue Apr 18 13:53:09 2006
New Revision: 45529
Modified:
python/trunk/Modules/_sre.c
Log:
C++ compiler cleanup: proper casts
Modified: python/trunk/Modules/_sre.c
==============================================================================
--- python/trunk/Modules/_sre.c (original)
+++ python/trunk/Modules/_sre.c Tue Apr 18 13:53:09 2006
@@ -2284,10 +2284,10 @@
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 {
More information about the Python-checkins
mailing list