summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-13 17:53:34 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-13 17:53:34 (GMT)
commit4917d93ca99c9e5ff9912c33a8cde244f9fc3f03 (patch)
tree2d0088513d191a6faef831db46e27243234ca187 /Modules
parentd6353e2c0eb2dec41eadcbc9c5f536483f7e0162 (diff)
downloadcpython-4917d93ca99c9e5ff9912c33a8cde244f9fc3f03.zip
cpython-4917d93ca99c9e5ff9912c33a8cde244f9fc3f03.tar.gz
cpython-4917d93ca99c9e5ff9912c33a8cde244f9fc3f03.tar.bz2
Keep picky compilers happy.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/regexpr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/regexpr.c b/Modules/regexpr.c
index c74ece3..115f327 100644
--- a/Modules/regexpr.c
+++ b/Modules/regexpr.c
@@ -797,7 +797,7 @@ static int re_optimize_star_jump(regexp_t bufp, char *code)
case Cexact:
{
ch = (unsigned char)*p1++;
- if (map[ch])
+ if (map[(int)ch])
goto make_normal_jump;
break;
}
@@ -873,7 +873,6 @@ static int re_optimize_star_jump(regexp_t bufp, char *code)
}
}
- make_update_jump:
code -= 3;
a += 3; /* jump to after the Cfailure_jump */
code[0] = Cupdate_failure_jump;
@@ -1094,12 +1093,12 @@ char *re_compile_pattern(char *regex, int size, regexp_t bufp)
int current_level;
int level;
int opcode;
- int pattern_offset, alloc;
+ int pattern_offset = 0, alloc;
int starts[NUM_LEVELS * MAX_NESTING];
int starts_base;
int future_jumps[MAX_NESTING];
int num_jumps;
- unsigned char ch;
+ unsigned char ch = '\0';
char *pattern;
char *translate;
int next_register;