diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-11-26 14:00:56 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-11-26 14:00:56 -0800 |
commit | 55a80fa06def8f37cef9b790706d56aeb65cd0dc (patch) | |
tree | a94b167bf98bcd6931d2c03d2c7c668de7697251 /gv.c | |
parent | 7857f36095641de1280b49b62ddb1f1ad78db186 (diff) | |
download | perl-55a80fa06def8f37cef9b790706d56aeb65cd0dc.tar.gz |
Fix compiler warning
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |