RT #128989
Prior to my commit v5.25.3-266-g1d7e644, in the absence of the SVs_RMG
flag, av_fetch() used AvFILL() for -ve keys and AvFILLp() for positive
keys. That commit changed it so they both use AvFILLp. This has broken
Variable::Magic 0.59.
As an interim measure, restore the old behaviour.
}
neg = (key < 0);
- size = AvFILLp(av) + 1;
+ /* XXX tmp restore old behaviour to make Variable::Magic pass */
+ size = (neg ? AvFILL(av): AvFILLp(av)) + 1;
key += neg * size; /* handle negative index without using branch */
/* the cast from SSize_t to Size_t allows both (key < 0) and (key >= size)