Skip to content

Update to 2.8.0 compile error #768

@till

Description

@till

Had a dependabot PR to update from 2.7.4 to 2.8.0, and this popped up:

Error: ../../../go/pkg/mod/github.com/gdamore/tcell/v2@v2.8.0/attr.go:32:25: cannot use 1 << 31 (untyped int constant 2147483648) as AttrMask value in constant declaration (overflows)

I think I've seen that before, but don't remember where. My project uses a newer go version (1.21.5) and I am trying to build on linux/amd64. Part of me thinks, that this might be a change in a recent go version to how integers are treated, but I don't remember right now.

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