temporary fix for RT bug # 20879 (real fix + testcases later)
[gitmo/Algorithm-C3.git] / lib / Algorithm / C3.pm
index 2252f3e..a18828a 100644 (file)
@@ -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;
@@ -279,7 +281,7 @@ is the B<Devel::Cover> report on this module's test suite.
 
 Stevan Little, E<lt>stevan@iinteractive.comE<gt>
 
-Brandon L. Black E<lt>blblack@gmail.comE<gt>
+Brandon L. Black, E<lt>blblack@gmail.comE<gt>
 
 =head1 COPYRIGHT AND LICENSE