diff options
author | Jerry D. Hedden <jdhedden@cpan.org> | 2007-03-23 02:40:02 -0700 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-03-23 16:45:14 +0000 |
commit | b0ca24ee9834c59905841bc9a868f799da15f1bc (patch) | |
tree | 5fe06b387f189b43ed566979cad526f3a8592fff /util.c | |
parent | 6952d67eb351266a502cac44072fad4994f66b8c (diff) | |
download | perl-b0ca24ee9834c59905841bc9a868f799da15f1bc.tar.gz |
Silence compiler warning in util.c
From: "Jerry D. Hedden" <jdhedden@yahoo.com>
Message-ID: <256688.25862.qm@web30215.mail.mud.yahoo.com>
p4raw-id: //depot/perl@30725
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -421,13 +421,13 @@ Perl_ninstr(pTHX_ const char *big, const char *bigend, const char *little, const bigend -= lend - little; OUTER: while (big <= bigend) { - if (*big++ != first) - goto OUTER; - for (x=big,s=little; s < lend; x++,s++) { - if (*s != *x) - goto OUTER; + if (*big++ == first) { + for (x=big,s=little; s < lend; x++,s++) { + if (*s != *x) + goto OUTER; + } + return (char*)(big-1); } - return (char*)(big-1); } } return NULL; |