Skip to content

Commit

Permalink
sv.c: Turn a FIXME comment into an explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
Father Chrysostomos committed Nov 28, 2011
1 parent fea3622 commit ce2077b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sv.c
Expand Up @@ -3645,8 +3645,8 @@ S_glob_assign_glob(pTHX_ SV *const dstr, SV *const sstr, const int dtype)
}
SvUPGRADE(dstr, SVt_PVGV);
(void)SvOK_off(dstr);
/* FIXME - why are we doing this, then turning it off and on again
below? */
/* We have to turn this on here (even though we turn it off
below, as GvSTASH will fail an assertion otherwise. */
isGV_with_GP_on(dstr);
}
GvSTASH(dstr) = GvSTASH(sstr);
Expand Down Expand Up @@ -3711,7 +3711,7 @@ S_glob_assign_glob(pTHX_ SV *const dstr, SV *const sstr, const int dtype)
}

gp_free(MUTABLE_GV(dstr));
isGV_with_GP_off(dstr);
isGV_with_GP_off(dstr); /* SvOK_off does not like globs. */
(void)SvOK_off(dstr);
isGV_with_GP_on(dstr);
GvINTRO_off(dstr); /* one-shot flag */
Expand Down

0 comments on commit ce2077b

Please sign in to comment.