diff --git a/src/lib.rs b/src/lib.rs index ab6e822..e483f1d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -600,7 +600,7 @@ impl Client { let mmap_cap_size = size_of::() as u32; let mmap_area_size = size_of::() as u32; - let cap_data_ptr = cap_data.as_ptr() as *const u8; + let cap_data_ptr = cap_data.as_ptr(); let mut region_info_offset = region_info.cap_offset; while region_info_offset != 0 { // calculate the offset from the begining of the cap_data based on the offset