From: Yuval Kogman Date: Thu, 21 Aug 2008 10:03:59 +0000 (+0000) Subject: cast X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e315cce6d22d761c5acafb16e99ba19a09623ada;p=gitmo%2FMoose.git cast --- diff --git a/Moose.xs b/Moose.xs index d1495bc..2d730fa 100644 --- a/Moose.xs +++ b/Moose.xs @@ -966,7 +966,7 @@ STATIC SV *deinitialize_slot(pTHX_ SV *self, ATTR *attr) { } STATIC SV *create_instance(pTHX_ MI *mi) { - return sv_bless(sv_2mortal(newRV_noinc(newHV())), mi->stash); + return sv_bless(sv_2mortal(newRV_noinc((SV *)newHV())), mi->stash); }