summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-09-12 14:04:54 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-09-12 14:04:54 +0000
commit9ef43ace7060ef03dec4786f384548681099f0ca (patch)
tree832b1f52e7d7e86862024e5e73b05af812bcf89f /regexec.c
parent11b7977502bb9b0e995a0e4d4c3e338b5419f478 (diff)
downloadperl-9ef43ace7060ef03dec4786f384548681099f0ca.tar.gz
More warnings silencing, including suggestions by Dominic Dunlop
p4raw-id: //depot/perl@28824
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 5e8e886c3d..1a86e4997a 100644
--- a/regexec.c
+++ b/regexec.c
@@ -717,7 +717,7 @@ Perl_re_intuit_start(pTHX_ regexp *prog, SV *sv, char *strpos,
}
- t= HOP3( s, -prog->check_offset_max, (prog->check_offset_max<0) ? strend : strpos);
+ t= (char*)HOP3( s, -prog->check_offset_max, (prog->check_offset_max<0) ? strend : strpos);
DEBUG_OPTIMISE_r(
PerlIO_printf(Perl_debug_log,
@@ -733,7 +733,7 @@ Perl_re_intuit_start(pTHX_ regexp *prog, SV *sv, char *strpos,
if (s - strpos > prog->check_offset_max /* signed-corrected t > strpos */
&& (!do_utf8
- || ((t = (char*)reghopmaybe3((U8*)s, -prog->check_offset_max, (prog->check_offset_max<0) ? strend : strpos))
+ || ((t = (char*)reghopmaybe3((U8*)s, -prog->check_offset_max, (U8*) ((prog->check_offset_max<0) ? strend : strpos)))
&& t > strpos)))
{
/* Fixed substring is found far enough so that the match