From: Jarkko Hietaniemi Date: Sat, 29 Oct 2005 11:52:25 +0000 (+0300) Subject: Re: [PATCH] predecrement vs postdecrement X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e27afef8dac321d729b447b4b30a0ca796905454;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] predecrement vs postdecrement Message-ID: <43633849.6060809@gmail.com> p4raw-id: //depot/perl@25870 --- diff --git a/regcomp.c b/regcomp.c index 744b380..d860831 100644 --- a/regcomp.c +++ b/regcomp.c @@ -6072,7 +6072,7 @@ Perl_pregfree(pTHX_ struct regexp *r) reg_trie_data *trie=(reg_trie_data*)r->data->data[n]; U32 refcount; OP_REFCNT_LOCK; - refcount = trie->refcount--; + refcount = --trie->refcount; OP_REFCNT_UNLOCK; if ( !refcount ) { Safefree(trie->charmap);