diff options
author | David Mitchell <davem@iabyn.com> | 2015-06-08 09:15:17 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2015-06-08 09:15:17 +0100 |
commit | 73949fca082fe50bf47755c5ffa328259057ae36 (patch) | |
tree | b8282c38e4c9ebde9a3e6ae22f0a005559045d0f /pad.h | |
parent | 463e63a457e71042ac8b1035b535e164839260ed (diff) | |
download | perl-73949fca082fe50bf47755c5ffa328259057ae36.tar.gz |
make PadlistNAMES() lvalue again.
The PadlistNAMES() macro was introduced with v5.17.3-69-g86d2498.
This macro happened to be lvalue-capable, although it wasn't documented
as such.
v5.21.6-163-g9b7476d as a side effect, broke the lvalueness, which broke
Coro.
This commit restores the lvalueness.
Diffstat (limited to 'pad.h')
-rw-r--r-- | pad.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -295,7 +295,7 @@ Restore the old pad saved into the local variable opad by PAD_SAVE_LOCAL() #define PadlistARRAY(pl) (pl)->xpadl_alloc #define PadlistMAX(pl) (pl)->xpadl_max -#define PadlistNAMES(pl) ((PADNAMELIST *)*PadlistARRAY(pl)) +#define PadlistNAMES(pl) *((PADNAMELIST **)PadlistARRAY(pl)) #define PadlistNAMESARRAY(pl) PadnamelistARRAY(PadlistNAMES(pl)) #define PadlistNAMESMAX(pl) PadnamelistMAX(PadlistNAMES(pl)) #define PadlistREFCNT(pl) 1 /* reserved for future use */ |