← 输入框|github.com|刷新
Skip to content

Bug in u16 to u32 conversion #2174

Closed

Description

@certik
from lpython import u16, i32

u : u16 = u16(32768)

print(u, i32(u))

This prints:

$ lpython a.py 
32768 -32768

But I think it should print:

32768 32768

Activity

  1. self-assigned this
    on Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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