summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-21 11:50:52 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-21 11:50:52 +0000
commit2f8edad0d37e91319b6ba10b3745327ea49c179b (patch)
treee3631bff088c1a90196228cea1088e9035d208e8 /perl.c
parent7df0357e86d252406ff52a5b94e0478fc1ccd1be (diff)
downloadperl-2f8edad0d37e91319b6ba10b3745327ea49c179b.tar.gz
Give G_VOID, G_SCALAR and G_ARRAY the same numeric values as
OPf_WANT_VOID, OPf_WANT_SCALAR and OPf_WANT_LIST. p4raw-id: //depot/perl@33025
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 7dc6d14a2e..907f9cf8e4 100644
--- a/perl.c
+++ b/perl.c
@@ -2578,6 +2578,11 @@ Perl_call_sv(pTHX_ SV *sv, I32 flags)
ENTER;
SAVETMPS;
}
+ if (!(flags & G_WANT)) {
+ /* Backwards compatibility - as G_SCALAR was 0, it could be omitted.
+ */
+ flags |= G_SCALAR;
+ }
Zero(&myop, 1, LOGOP);
myop.op_next = NULL;