mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Casts by Jack to shut up the Mac compiler.
This commit is contained in:
parent
bad3c013d2
commit
ed2554a396
4 changed files with 32 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue