Skip to content

Commit 6aaa524

Browse files
FIX: pass compiling error: #[deny(function_casts_as_integer)]
1 parent 2e0beb3 commit 6aaa524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/riscv/src/virtio_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern "C" {
1111
}
1212

1313
lazy_static! {
14-
static ref DMA_PADDR: AtomicU64 = AtomicU64::new(end as u64);
14+
static ref DMA_PADDR: AtomicU64 = AtomicU64::new(end as *const () as u64);
1515
}
1616

1717
pub struct HalImpl;

0 commit comments

Comments
 (0)