Skip to content

Commit

Permalink
fix "expected *mut u8, found *mut i8" error
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Mar 18, 2024
1 parent 2ec9200 commit ab7f61d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vncserver/src/rfb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ pub fn rfb_screen_cleanup(ptr: rfbScreenInfoPtr) {

pub fn rfb_framebuffer_malloc(ptr: rfbScreenInfoPtr, fb_size: u64) {
unsafe {
(*ptr).frameBuffer = malloc(fb_size as ::std::os::raw::c_ulong) as *mut i8;
(*ptr).frameBuffer =
malloc(fb_size as ::std::os::raw::c_ulong) as *mut ::std::os::raw::c_char;
}
}

Expand Down

0 comments on commit ab7f61d

Please sign in to comment.