summaryrefslogtreecommitdiffstats
path: root/Modules/regexmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-03 00:47:36 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-03 00:47:36 (GMT)
commitd19c04a88e8c4720818e3a01671547ffdde01c98 (patch)
treef156ea25970151cae26ea4c4f8dce54fc781c87f /Modules/regexmodule.c
parent5ade0849020cc241fd6a9af47b7c84746440c1ed (diff)
downloadcpython-d19c04a88e8c4720818e3a01671547ffdde01c98.zip
cpython-d19c04a88e8c4720818e3a01671547ffdde01c98.tar.gz
cpython-d19c04a88e8c4720818e3a01671547ffdde01c98.tar.bz2
Change [_Py_]re_compile_pattern() to return a char*.
Since it only returns an error message (or NULL) there's no reason for it to be unsigned char *, and various compilers like this better.
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r--Modules/regexmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c
index df112d3..981dc8c 100644
--- a/Modules/regexmodule.c
+++ b/Modules/regexmodule.c
@@ -439,7 +439,7 @@ newregexobject(pattern, translate, givenpat, groupindex)
re->re_realpat = pattern;
Py_INCREF(givenpat);
re->re_givenpat = givenpat;
- error = (char *)re_compile_pattern((unsigned char *)pat, size, &re->re_patbuf);
+ error = _Py_re_compile_pattern((unsigned char *)pat, size, &re->re_patbuf);
if (error != NULL) {
PyErr_SetString(RegexError, error);
goto finally;