From: Jesse Luehrs Date: Sat, 13 Nov 2010 18:07:42 +0000 (-0600) Subject: remove some unnecessary casts X-Git-Tag: 0.14~29 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6cce0a028629adb097bf4948e8e03e60c0f47ef9;p=gitmo%2FPackage-Stash-XS.git remove some unnecessary casts --- diff --git a/Stash.xs b/Stash.xs index 2fc0613..72ee898 100644 --- 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; }