-
Notifications
You must be signed in to change notification settings - Fork 12
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
Introduce Value::as_i32
#732
Conversation
To help make #596 easier to read and reason about.
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.
Seems like a reasonable utility function to add -- see just the one copy error in the doc comment for the new UInt
function.
ceno_zkvm/src/uint.rs
Outdated
@@ -684,6 +684,11 @@ impl<'a, T: Into<u64> + From<u32> + Copy + Default> Value<'a, T> { | |||
self.as_u64() as u32 | |||
} | |||
|
|||
/// Convert the limbs to a u32 value |
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.
Copy-paste error: should be Convert the limbs to an i32 value
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.
Good catch!
To help make scroll-tech#596 easier to read and reason about. Also introduce a few more conversion helpers.
To help make #596 easier to read and reason about.
Also introduce a few more conversion helpers.