You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we expected to be able to convert 32768, which is i32, into u16. please help
fromlpythonimportu16, i32i : i32u : u16=u16(32768)
x : i32foriinrange(i32(u)):
x=i*2
/Users/brian/CLionProjects/lpython/src/bin/python /Users/brian/CLionProjects/lpython/lasr/LP-pycharm/IssueCH152.py
code generation error: Variable type not supported 1
--> /Users/brian/CLionProjects/lpython/lasr/LP-pycharm/IssueCH152.py:4:1
|
4 | u : u16 = u16(32768)
| ^^^^^^^^^^^^^^^^^^^^
Note: if any of the above error or warning messages are not clear or are lacking
context please report it to us (we consider that a bug that must be fixed).
Activity
ubaidsk commentedon Jul 17, 2023
Team, I think this issue was already fixed in #2164.
certik commentedon Jul 17, 2023
It's not clear if the casting has been implemented properly. I opened up a new issue for this: #2174