summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-11-26 14:00:56 -0800
committerFather Chrysostomos <sprout@cpan.org>2010-11-26 14:00:56 -0800
commit55a80fa06def8f37cef9b790706d56aeb65cd0dc (patch)
treea94b167bf98bcd6931d2c03d2c7c668de7697251 /gv.c
parent7857f36095641de1280b49b62ddb1f1ad78db186 (diff)
downloadperl-55a80fa06def8f37cef9b790706d56aeb65cd0dc.tar.gz
Fix compiler warning
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index f51839e6a8..5fd385bd11 100644
--- a/gv.c
+++ b/gv.c
@@ -319,7 +319,7 @@ Perl_gv_init(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len, int multi)
cv = newCONSTSUB(stash, (name0 ? name0 : name), has_constant);
/* In case op.c:S_process_special_blocks stole it: */
if (!GvCV(gv))
- GvCV(gv) = SvREFCNT_inc_simple_NN(cv);
+ GvCV(gv) = (CV *)SvREFCNT_inc_simple_NN(cv);
assert(GvCV(gv) == cv); /* newCONSTSUB should have set this */
if (name0)
Safefree(name0);