We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5642256 commit 7833eadCopy full SHA for 7833ead
stack-reorder-contract/src/main.rs
@@ -11,16 +11,17 @@ ckb_std::entry!(program_entry);
11
#[cfg(not(test))]
12
default_alloc!();
13
14
+#[allow(unused_variables, unused_assignments)]
15
pub fn program_entry() -> i8 {
- let mut _x: u64;
16
+ let mut x: u64;
17
unsafe {
18
core::arch::asm!(
- "mv {_x}, sp",
19
- _x = out(reg) _x,
+ "mv {x}, sp",
20
+ x = out(reg) x,
21
);
22
}
23
- ckb_std::debug!("Current SP is {:x}", _x);
24
+ ckb_std::debug!("Current SP is {:x}", x);
25
26
0
27
0 commit comments