This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[patch] ptr_table_store
[perl5.git] / sv.c
diff --git a/sv.c b/sv.c
index da051f7..4f38159 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -8757,7 +8757,6 @@ Perl_ptr_table_store(pTHX_ PTR_TBL_t *tbl, void *oldv, void *newv)
     for (tblent = *otblent; tblent; i=0, tblent = tblent->next) {
        if (tblent->oldval == oldv) {
            tblent->newval = newv;
-           tbl->tbl_items++;
            return;
        }
     }