diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-21 11:50:52 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-21 11:50:52 +0000 |
commit | 2f8edad0d37e91319b6ba10b3745327ea49c179b (patch) | |
tree | e3631bff088c1a90196228cea1088e9035d208e8 /perl.c | |
parent | 7df0357e86d252406ff52a5b94e0478fc1ccd1be (diff) | |
download | perl-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |