summaryrefslogtreecommitdiffstats
path: root/Modules/regexpr.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-04-10 15:48:23 (GMT)
committerGuido van Rossum <guido@python.org>1999-04-10 15:48:23 (GMT)
commitff1ccbfc2172c564c6ca93113e1a1cf9a271f6ef (patch)
tree90e7a99262295be164c5b6bb021da86cf620b27b /Modules/regexpr.c
parentcbf8906f5de5da29602f9fa7034488d2dca51663 (diff)
downloadcpython-ff1ccbfc2172c564c6ca93113e1a1cf9a271f6ef.zip
cpython-ff1ccbfc2172c564c6ca93113e1a1cf9a271f6ef.tar.gz
cpython-ff1ccbfc2172c564c6ca93113e1a1cf9a271f6ef.tar.bz2
casts for picky compilers.
Diffstat (limited to 'Modules/regexpr.c')
-rw-r--r--Modules/regexpr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/regexpr.c b/Modules/regexpr.c
index a45b9e2..cc86977 100644
--- a/Modules/regexpr.c
+++ b/Modules/regexpr.c
@@ -811,7 +811,8 @@ static int re_optimize_star_jump(bufp, code)
p2 = code;
/* p1 points inside loop, p2 points to after loop */
if (!re_do_compile_fastmap(bufp->buffer, bufp->used,
- p2 - bufp->buffer, &can_be_null, map))
+ (int)(p2 - bufp->buffer),
+ &can_be_null, map))
goto make_normal_jump;
/* If we might introduce a new update point inside the