summaryrefslogtreecommitdiff
path: root/ext/List/Util/Util.xs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/List/Util/Util.xs')
-rw-r--r--ext/List/Util/Util.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/List/Util/Util.xs b/ext/List/Util/Util.xs
index 0e0cfbfc2b..af6a586fad 100644
--- a/ext/List/Util/Util.xs
+++ b/ext/List/Util/Util.xs
@@ -411,6 +411,8 @@ refaddr(sv)
PROTOTYPE: $
CODE:
{
+ if (SvMAGICAL(sv))
+ mg_get(sv);
if(!SvROK(sv)) {
XSRETURN_UNDEF;
}