Project

General

Profile

« Previous | Next » 

Revision 3016f30c

Added by tenderlovemaking (Aaron Patterson) over 2 years ago

Return NULL to indicate the next shape isn't found

During compaction we must fix up shapes on objects who were extended but
then became embedded. rb_shape_traverse_from_new_root is supposed to
walk shape trees looking for a matching shape. When a shape has a
"single child" we weren't returning NULL when the edge names didn't
match.

In the case of a single outgoing edge, this patch returns NULL when the
child edge name doesn't match (similar to the case when a shape has a
hash of outgoing edges)