From: Vincent Pit Date: Sun, 28 Dec 2008 17:22:34 +0000 (+0100) Subject: Reverse preeminent logic in su_save_helem() X-Git-Tag: v0.02~4 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=e7bb90c3e0eb82712d5eda47563ca77269bbdbac;p=perl%2Fmodules%2FScope-Upper.git Reverse preeminent logic in su_save_helem() --- diff --git a/Upper.xs b/Upper.xs index 799a2f3..8814d9d 100644 --- a/Upper.xs +++ b/Upper.xs @@ -145,13 +145,13 @@ STATIC void su_save_helem(pTHX_ HV *hv, SV *keysv, SV **svp, I32 preeminent) { save_gp((GV *) *svp, 0); return; } - if (!preeminent) { + if (preeminent) + save_helem(hv, keysv, svp); + else { STRLEN keylen; const char * const key = SvPV_const(keysv, keylen); SAVEDELETE(hv, savepvn(key, keylen), SvUTF8(keysv) ? -(I32)keylen : (I32)keylen); - } else { - save_helem(hv, keysv, svp); } }