diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-06 16:52:37 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-06 16:52:37 +0000 |
commit | ca5b42cb45f4f349d2f4294782df89816ca80d76 (patch) | |
tree | cfd53cdf87833f92a1e5de3d086b60d56d206930 /pp.c | |
parent | 43039de73e9f6e7f5c6b05087b44cc6c45f595b2 (diff) | |
download | perl-ca5b42cb45f4f349d2f4294782df89816ca80d76.tar.gz |
fix int vs STRLEN issue
p4raw-id: //depot/perl@3619
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -5005,9 +5005,9 @@ PP(pp_split) SV *csv = CALLREG_INTUIT_STRING(aTHX_ rx); char c; - i = rx->minlen; - if (i == 1 && !tail) { - c = *SvPV(csv,i); + len = rx->minlen; + if (len == 1 && !tail) { + c = *SvPV(csv,len); while (--limit) { /*SUPPRESS 530*/ for (m = s; m < strend && *m != c; m++) ; @@ -5033,7 +5033,7 @@ PP(pp_split) if (make_mortal) sv_2mortal(dstr); XPUSHs(dstr); - s = m + i; /* Fake \n at the end */ + s = m + len; /* Fake \n at the end */ } } } |