summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2015-01-09 08:45:28 -0800
committerFather Chrysostomos <sprout@cpan.org>2015-01-31 22:03:53 -0800
commit636ac8fc9ac210e786fda679ad294c918022d0c5 (patch)
treeda4fcc2499b4f943897103e8852d39ecf924cf11 /pp.c
parent594a52e669cf40aeb3e1f610fad70e3f919e8e10 (diff)
downloadperl-636ac8fc9ac210e786fda679ad294c918022d0c5.tar.gz
5th arg to indicate numeric bitwise overloading
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pp.c b/pp.c
index 2cd2d5e03d..c9d9e1a77d 100644
--- a/pp.c
+++ b/pp.c
@@ -2227,7 +2227,7 @@ PP(pp_bit_and)
PP(pp_nbit_and)
{
dSP;
- tryAMAGICbin_MG(band_amg, AMGf_assign);
+ tryAMAGICbin_MG(band_amg, AMGf_assign|AMGf_numarg);
{
dATARGET; dPOPTOPssrl;
if (PL_op->op_private & HINT_INTEGER) {
@@ -2297,7 +2297,7 @@ PP(pp_nbit_or)
const int op_type = PL_op->op_type;
tryAMAGICbin_MG((op_type == OP_NBIT_OR ? bor_amg : bxor_amg),
- AMGf_assign);
+ AMGf_assign|AMGf_numarg);
{
dATARGET; dPOPTOPssrl;
if (PL_op->op_private & HINT_INTEGER) {
@@ -2515,7 +2515,7 @@ PP(pp_complement)
PP(pp_ncomplement)
{
dSP;
- tryAMAGICun_MG(compl_amg, AMGf_numeric);
+ tryAMAGICun_MG(compl_amg, AMGf_numeric|AMGf_numarg);
{
dTARGET; dTOPss;
if (PL_op->op_private & HINT_INTEGER) {