Skip to content

lsr(-123, 0) not equiv. to -123 >>> 0 #7222

Open
@leoliu

Description

@leoliu

While converting a JS program to rescript I discovered that lsr(-123,0) is compiled to just -123 which is not equivalent to -123 >>> 0. I wonder if this is a bug?

https://rescript-lang.org/try?version=v11.1.4&module=esmodule&code=DYUwLgBAHhC8HAM4CcAUBaAjAJgMwBoAGASgChRIBPOCAUmQEMB3VAIizwgD4eJDWypAFKIAdMAD2Ac1QxY8SsSA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions