-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: add iterator-based for loops #1176
base: native-cleanup
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
a8c0bcc
to
165c11c
Compare
6d8afc2
to
f69afb5
Compare
This comment has been minimized.
This comment has been minimized.
1f9f911
to
b242cd7
Compare
This comment has been minimized.
This comment has been minimized.
b242cd7
to
e6b8852
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
24c5898
to
f92aea1
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
62c5f64
to
7d8670b
Compare
@@ -134,7 +133,7 @@ impl<C: Config, V: MemVariable<C>> Array<C, V> { | |||
} | |||
|
|||
let slice_len = builder.eval(end - start); | |||
let address = builder.eval(ptr.address + start); | |||
let address = builder.eval(ptr.address + start * RVar::from(V::size_of())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this fixes a previous bug, please check.
@@ -78,10 +78,9 @@ impl<C: Config, V: MemVariable<C>> Array<C, V> { | |||
} | |||
} | |||
Self::Dyn(ptr, len) => { | |||
assert_eq!(V::size_of(), 1, "only support variables of size 1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this restriction was previously present, as it seems easily removed on L83 below.
Commit: 7d8670b |
Closes INT-2930, INT-2946