summaryrefslogtreecommitdiffstats
path: root/Modules/regexpr.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-18 15:31:24 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-18 15:31:24 (GMT)
commited2554a396f5adc8a701d61539d1ed565baf9934 (patch)
tree4e88ce4cf7e81f3c1e5c0b323c364899d0e5f069 /Modules/regexpr.c
parentbad3c013d29b7905597204ee27924a36c6653f4d (diff)
downloadcpython-ed2554a396f5adc8a701d61539d1ed565baf9934.zip
cpython-ed2554a396f5adc8a701d61539d1ed565baf9934.tar.gz
cpython-ed2554a396f5adc8a701d61539d1ed565baf9934.tar.bz2
Casts by Jack to shut up the Mac compiler.
Diffstat (limited to 'Modules/regexpr.c')
-rw-r--r--Modules/regexpr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/regexpr.c b/Modules/regexpr.c
index 1c0f60a..a90363a 100644
--- a/Modules/regexpr.c
+++ b/Modules/regexpr.c
@@ -1535,36 +1535,36 @@ unsigned char *re_compile_pattern(unsigned char *regex, int size, regexp_t bufp)
STORE(Cend);
SET_FIELDS;
if(!re_optimize(bufp))
- return "Optimization error";
+ return (unsigned char *)"Optimization error";
return NULL;
op_error:
SET_FIELDS;
- return "Badly placed special character";
+ return (unsigned char *)"Badly placed special character";
bad_match_register:
SET_FIELDS;
- return "Bad match register number";
+ return (unsigned char *)"Bad match register number";
hex_error:
SET_FIELDS;
- return "Bad hexadecimal number";
+ return (unsigned char *)"Bad hexadecimal number";
parenthesis_error:
SET_FIELDS;
- return "Badly placed parenthesis";
+ return (unsigned char *)"Badly placed parenthesis";
out_of_memory:
SET_FIELDS;
- return "Out of memory";
+ return (unsigned char *)"Out of memory";
ends_prematurely:
SET_FIELDS;
- return "Regular expression ends prematurely";
+ return (unsigned char *)"Regular expression ends prematurely";
too_complex:
SET_FIELDS;
- return "Regular expression too complex";
+ return (unsigned char *)"Regular expression too complex";
}
#undef CHARAT