From: Brandon L Black Date: Thu, 9 Nov 2006 22:34:37 +0000 (+0000) Subject: a possible fix for infinite loops X-Git-Tag: 0.06~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=59cf067c50b4f82400f0deebea4839003388360c;p=gitmo%2FAlgorithm-C3.git a possible fix for infinite loops --- diff --git a/lib/Algorithm/C3.pm b/lib/Algorithm/C3.pm index 009bc10..00250c9 100644 --- a/lib/Algorithm/C3.pm +++ b/lib/Algorithm/C3.pm @@ -48,6 +48,7 @@ sub merge { $i = 0; next; } + %seen = (); my $mergeout = $cache->{merge}->{$current_root} ||= do {