diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-13 20:46:37 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-13 20:46:37 +0000 |
commit | 635bab04a8e9700ca0cd2791a5f46a400e5d5a55 (patch) | |
tree | 7847c20ea81bc9e3a0c0be17e009ebfc66436822 /op.c | |
parent | a398b1cd0bdedce6ed56d94672826be8f84db2f8 (diff) | |
download | perl-635bab04a8e9700ca0cd2791a5f46a400e5d5a55.tar.gz |
cleaner logic in op.c, also avoids QNX optimizer bug (from Norton
Allen <allen@huarp.harvard.edu>)
p4raw-id: //depot/perl@5710
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -159,7 +159,7 @@ Perl_pad_allocmy(pTHX_ char *name) } } if (PL_in_my == KEY_our) { - while (off <= top) { + do { if ((sv = svp[off]) && sv != &PL_sv_undef && ((SvFLAGS(sv) & SVpad_OUR) && GvSTASH(sv) == ourstash) @@ -171,8 +171,7 @@ Perl_pad_allocmy(pTHX_ char *name) "(Did you mean \"local\" instead of \"our\"?)\n"); break; } - --off; - } + } while ( off-- > 0 ); } } off = pad_alloc(OP_PADSV, SVs_PADMY); |