Skip to content

Bug in u16 to u32 conversion #2174

Closed
@certik

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

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