Skip to content

Commit 330143e

Browse files
committed
Fix test
1 parent ace37a8 commit 330143e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/ruby-rbs-sys/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ mod tests {
3131
"#;
3232

3333
let bytes = rbs_code.as_bytes();
34-
let start_ptr = bytes.as_ptr() as *const i8;
35-
let end_ptr = unsafe { start_ptr.add(bytes.len()) } as *const i8;
34+
let start_ptr = bytes.as_ptr() as *const std::os::raw::c_char;
35+
let end_ptr = unsafe { start_ptr.add(bytes.len()) } as *const std::os::raw::c_char;
3636

3737
let rbs_string = unsafe { rbs_string_new(start_ptr, end_ptr) };
3838
let encoding_ptr =

0 commit comments

Comments
 (0)