Skip to content

AbstractSortedCollection.higherNode() hangs #2

@sunrize531

Description

@sunrize531

I think is some sort of recursion here. I've called SortedMap.higherKey on sorted map with this comparator:

package com.berry.iso {
    import org.as3commons.collections.framework.IComparator;

    public class ISOPointComparator implements IComparator {
        // Note: Unlike sort functions in Array and Vector this one should strictly return -1, 0 or 1.

        public function compare (item1:*, item2:*):int {
            var point1:IISOPoint = item1 as IISOPoint;
            var point2:IISOPoint = item2 as IISOPoint;
            var re:int = point1.cy - point2.cy || point2.cx - point1.cx;
            if (re != 0) {
                re = (re > 0) ? 1 : -1;
            }
            return re;
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions