GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — LLVM: Support Unsigned Int in visit_Variable by Smit-create · Pull Request #2171 · lcompilers/lpython Conversation
Collaborator
Fixes #2170
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
certik
approved these changes
|
|
Please see #2170 (comment). I think the lpython/src/libasr/codegen/asr_to_llvm.cpp Lines 2356 to 2378 in ea9715b
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, I tested different unsigned kinds in https://github.com/lcompilers/lpython/pull/2164/files#diff-b6a08444f0697e1ea781c919bcdf3b29eba7b542bddef56ce0125f3c2997c973. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| x : i32 | ||
|
|
||
| for i in range(i32(u)): | ||
| x = i * 2 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
If in case we update the changes in this PR, I suggest we add an assert in this test case (and also possibly a print statement before the assert).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
type casting between u16 and i32 needed
There was an error while loading. Please reload this page.