summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-21 08:54:25 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-21 08:54:25 +0000
commit51ce55291bc7d910929bee20dfbf29b2ba1a396f (patch)
tree95b6d491ec55618d74b6dcea94dc765b1b77e990 /perl.c
parent4f9115300b43ef6b5f7a27ee5faa266cbbca1243 (diff)
downloadperl-51ce55291bc7d910929bee20dfbf29b2ba1a396f.tar.gz
Add a flag G_WANT, as a mask for the bits G_SCALAR, G_ARRAY and G_VOID.
p4raw-id: //depot/perl@33021
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl.c b/perl.c
index 11c316c474..7dc6d14a2e 100644
--- a/perl.c
+++ b/perl.c
@@ -2650,7 +2650,7 @@ Perl_call_sv(pTHX_ SV *sv, I32 flags)
goto redo_body;
}
PL_stack_sp = PL_stack_base + oldmark;
- if (flags & G_ARRAY)
+ if ((flags & G_WANT) == G_ARRAY)
retval = 0;
else {
retval = 1;
@@ -2749,7 +2749,7 @@ Perl_eval_sv(pTHX_ SV *sv, I32 flags)
goto redo_body;
}
PL_stack_sp = PL_stack_base + oldmark;
- if (flags & G_ARRAY)
+ if ((flags & G_WANT) == G_ARRAY)
retval = 0;
else {
retval = 1;