Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

u16 left shift problem, LPython 18.1 #2163

Closed
rebcabin opened this issue Jul 16, 2023 · 1 comment · Fixed by #2164
Closed

u16 left shift problem, LPython 18.1 #2163

rebcabin opened this issue Jul 16, 2023 · 1 comment · Fixed by #2164
Labels
BLOCKER workaround not found yet

Comments

@rebcabin
Copy link
Contributor

Big blocker for some system code I'm writing

from lpython import u16

FLAG : u16 = u16(u16(1) << u16(0))
/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:3:1
  |
3 | FLAG : u16 = u16(u16(1) << u16(0))
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 


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).

Process finished with exit code 3
@certik
Copy link
Contributor

certik commented Jul 17, 2023

@rebcabin fixed by @Shaikh-Ubaid in 1h!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLOCKER workaround not found yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants