Skip to content

Incorrect handling of precedence of >> and & bitwise operators #76

@cohler

Description

@cohler

According to LUA 5.3 manual, << and >> are HIGHER precedence operators than &.

But luamin takes the following expression,

  • (a & b) >> c

removes the parens, and minifies it to

  • a&b>>c

which is NOT syntactically equivalent and therefore gives different results.

PLEASE FIX.

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