We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d5babc commit 8b94f23Copy full SHA for 8b94f23
callable_oracles/src/field_hints/mod.rs
@@ -50,9 +50,9 @@ impl<M: MemorySource> OracleQueryProcessor<M> for FieldOpsQuery<M> {
50
"A single RISC-V ptr should've been passed."
51
);
52
53
- assert!(arg_ptr % 4 == 0);
+ assert!(arg_ptr.is_multiple_of(4));
54
const { assert!(core::mem::align_of::<FieldOpsHint>() == 4) }
55
- const { assert!(core::mem::size_of::<FieldOpsHint>() % 4 == 0) }
+ const { assert!(core::mem::size_of::<FieldOpsHint>().is_multiple_of(4)) }
56
57
let arg = unsafe { read_struct::<FieldOpsHint, M>(memory, arg_ptr as u32) }.unwrap();
58
0 commit comments