remove some unnecessary casts
Jesse Luehrs [Sat, 13 Nov 2010 18:07:42 +0000 (12:07 -0600)]
Stash.xs

index 2fc0613..72ee898 100644 (file)
--- a/Stash.xs
+++ b/Stash.xs
@@ -396,19 +396,19 @@ add_package_symbol(self, variable, initial=NULL, ...)
             GvSV(glob) = val;
             break;
         case VAR_ARRAY:
-            SvREFCNT_dec((SV*)GvAV(glob));
+            SvREFCNT_dec(GvAV(glob));
             GvAV(glob) = (AV*)val;
             break;
         case VAR_HASH:
-            SvREFCNT_dec((SV*)GvHV(glob));
+            SvREFCNT_dec(GvHV(glob));
             GvHV(glob) = (HV*)val;
             break;
         case VAR_CODE:
-            SvREFCNT_dec((SV*)GvCV(glob));
+            SvREFCNT_dec(GvCV(glob));
             GvCV(glob) = (CV*)val;
             break;
         case VAR_IO:
-            SvREFCNT_dec((SV*)GvIO(glob));
+            SvREFCNT_dec(GvIO(glob));
             GvIOp(glob) = (IO*)val;
             break;
         }