about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/SearchThread.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchThread.pm b/lib/PublicInbox/SearchThread.pm
index dad783ef..ba31f432 100644
--- a/lib/PublicInbox/SearchThread.pm
+++ b/lib/PublicInbox/SearchThread.pm
@@ -179,7 +179,7 @@ sub recurse_down {
         my %seen;
         my @q = ($self);
         while (my $cont = shift @q) {
-                $seen{$cont}++;
+                $seen{$cont} = 1;
                 $callback->($cont);
 
                 if (my $next = $cont->{next}) {
@@ -209,7 +209,7 @@ sub order_children {
                 push @visited, $walk;
 
                 # spot/break loops
-                $seen{$walk}++;
+                $seen{$walk} = 1;
 
                 my $child = $walk->{child};
                 if ($child && $seen{$child}) {