This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make 0 not a special value for COP_SEQ_RANGE_HIGH
authorDavid Mitchell <davem@iabyn.com>
Sun, 6 Feb 2011 17:04:17 +0000 (17:04 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sun, 6 Feb 2011 18:57:16 +0000 (18:57 +0000)
commit0d311cdbe540a08e243ac533c7bcdb73529352db
tree80953d7f0a07c93c6acbdafb3a0c3acb7851e718
parent2df5bdd700b8a6ef036aa5be19d4bda9e3ca20bc
make 0 not a special value for COP_SEQ_RANGE_HIGH

Some of the code in pad.c tests COP_SEQ_RANGE_HIGH for the special value 0.
By instead testing COP_SEQ_RANGE_LOW for the special value PERL_PADSEQ_INTRO
(which it turns out is functioanlly equivalent), we can eliminate one of
the special values that PL_cop_seqmax mustn't be set to.
pad.c