From: gfx Date: Thu, 26 Nov 2009 12:45:25 +0000 (+0900) Subject: A tiny tweak X-Git-Tag: 0.40_08~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=957474ad02b108cb465de4d314bb22b6f1ea5a9f;p=gitmo%2FMouse.git A tiny tweak --- diff --git a/xs-src/MouseAccessor.xs b/xs-src/MouseAccessor.xs index f93d25f..4dd16dd 100644 --- a/xs-src/MouseAccessor.xs +++ b/xs-src/MouseAccessor.xs @@ -384,7 +384,8 @@ mouse_instance_set_slot(pTHX_ SV* const instance, SV* const slot, SV* const valu CHECK_INSTANCE(instance); he = hv_fetch_ent((HV*)SvRV(instance), slot, TRUE, 0U); sv = HeVAL(he); - sv_setsv_mg(sv, value); + sv_setsv(sv, value); + SvSETMAGIC(sv); return sv; }