Skip to content

Zero-fill right shift issue #4

@kbanach

Description

@kbanach

great job, but I have a suggestion

new Node((itvl.start + itvl.end) >>> 1);

is quite good untill

(itvl.start + itvl.end) <== 4294967295

because

4294967296 >>> 1 === 0
4294967297 >>> 1 === 0
4294967298 >>> 1 === 1
4294967299 >>> 1 === 1
4294967300 >>> 1 === 2

and so on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions