Skip to content

lua has had bitwise shift operators since 2015 #388

Open
@thenumbernine

Description

@thenumbernine

In binarytrees and merkeltrees, for bit-shifting, you are using 2 ^ x, which calls pow().
You should use 1 << x like you do in other languages.

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