Re: [PATCH] predecrement vs postdecrement
Jarkko Hietaniemi [Sat, 29 Oct 2005 11:52:25 +0000 (14:52 +0300)]
Message-ID: <43633849.6060809@gmail.com>

p4raw-id: //depot/perl@25870

regcomp.c

index 744b380..d860831 100644 (file)
--- 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);