This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
tr/nonutf8/nonutf8/c: simplify GROW calc
authorDavid Mitchell <davem@iabyn.com>
Fri, 19 Jan 2018 12:01:56 +0000 (12:01 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 19 Jan 2018 13:47:39 +0000 (13:47 +0000)
commitaae634e7e53e95647c40734059a045c1e0a25c7b
tree1017a241beb0785998b0fe25a8b9d065095d10e7
parenta11063347569002659e0731085217d0bc0347971
tr/nonutf8/nonutf8/c: simplify GROW calc

When, for each slot,  deciding whether to set OPpTRANS_GROWS, the
calculation is only done in one of 4 possible branches. It turns out that
in the other branches, the condition can never be true; but determining
that is subtle, and the assumption might break for future changes.  Move
the test outside the if/else tree so it can be seen to always apply.

So in theory this commit makes no function difference.
op.c