cast
Yuval Kogman [Thu, 21 Aug 2008 10:03:59 +0000 (10:03 +0000)]
Moose.xs

index d1495bc..2d730fa 100644 (file)
--- 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);
 }