Skip to content

Bigint: incorrect behavior of ^ operator #6453

Description

@hoshiumiarata

It seems that the ^ operator is not working correctly with negative bigints in some cases.

(-1<<65) ^ 1

mruby: 1
Ruby 3.3: -36893488147419103231

Test cases are placed in this pull request: #6444

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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