fix use of size_t in list comprehension #177
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#177
Loading…
Reference in New Issue
No description provided.
Delete Branch "list_comp_size_t_fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I found the bug when porting tests of list slice things using list comprehension.
counter
with correct initial value@ -523,8 +523,7 @@ pub fn gen_comprehension<'ctx, 'a, G: CodeGenerator>(
let zero = size_t.const_zero();
rename or just use
size_t.const_zero()
?7c6cbe0201
to1b220c156f
Renamed to
zero_64
andzero_32
, and further fix the size_t issue in list comprehension forrange
1b220c156f
toace0e2a2c6