summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorRuslan Zakirov <ruz@bestpractical.com>2012-10-08 02:41:06 +0400
committerFather Chrysostomos <sprout@cpan.org>2012-12-11 08:59:39 -0800
commitbe1092b8b2529803333f6d1be2025b9af797f010 (patch)
tree8a545ab585d0e5dff5ee3a9e08464f61135e7b5d /pp_hot.c
parent3e125adaaf6d41df6a78e92e6682685224048aba (diff)
downloadperl-be1092b8b2529803333f6d1be2025b9af797f010.tar.gz
warn on ($s,%h) = (1,{}) as on %h = {}
Latter results in "Reference found where even-sized list expected" message while former produces "Reference found where even-sized list expected". Quite inconsistent.
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 510d62b849..df9322812b 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1124,7 +1124,7 @@ PP(pp_aassign)
TAINT_NOT;
}
if (relem == lastrelem) {
- do_oddball(hash, relem, firstrelem);
+ do_oddball(hash, relem, firsthashrelem);
relem++;
}
LEAVE;