Skip to content

Fix printing of unsigned integers #1896

@certik

Description

@certik
def main():
    i: u8 = u8(255)
    print(i)

main()

This prints:

$ lpython a.py
-1

But should print 255.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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