Skip to content

Commit 2d2e7d7

Browse files
Per Larsenthedataking
authored andcommitted
Fix cast in examples/riscv
1 parent 606479b commit 2d2e7d7

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: AtomicUsize = AtomicUsize::new(end as usize);
14+
static ref DMA_PADDR: AtomicUsize = AtomicUsize::new(end as *const () as usize);
1515
}
1616

1717
pub struct HalImpl;

0 commit comments

Comments
 (0)