From: Brandon L Black Date: Tue, 8 Aug 2006 21:55:41 +0000 (+0000) Subject: temporary fix for RT bug # 20879 (real fix + testcases later) X-Git-Tag: 0.03~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6f1d530c5744b94be30bd988cf61b19f13ef181d;p=gitmo%2FAlgorithm-C3.git temporary fix for RT bug # 20879 (real fix + testcases later) --- diff --git a/lib/Algorithm/C3.pm b/lib/Algorithm/C3.pm index d4c49e3..a18828a 100644 --- a/lib/Algorithm/C3.pm +++ b/lib/Algorithm/C3.pm @@ -55,7 +55,9 @@ sub merge { # http://www.python.org/2.3/mro.html :) # Initial set - my @seqs = ([$current_root], @$recurse_mergeout, $current_parents); + my @deepcopy_recurse_mergeout; + push(@deepcopy_recurse_mergeout, [@$_]) for (@$recurse_mergeout); + my @seqs = ([$current_root], @deepcopy_recurse_mergeout, [@$current_parents]); # Construct the tail-checking hash my %tails;