From: Vincent Pit Date: Fri, 24 Jul 2015 19:22:21 +0000 (-0300) Subject: Greatly simplify the depth computation in su_init() X-Git-Tag: rt104751~7 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=0fa298f68579e3e7c832504a7b9cfa367b024217;hp=0fa298f68579e3e7c832504a7b9cfa367b024217;p=perl%2Fmodules%2FScope-Upper.git Greatly simplify the depth computation in su_init() In order to count how many scopes we will have to pop, it is enough to take the difference between the current scope (PL_scopestack_ix) and the one just below the target context (cxstack[cxix].blk_oldscopesp). ---