Skip to content

Commit aa8eb94

Browse files
Differences between linux and macos pointers.
1 parent 02a432f commit aa8eb94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/hyper_ruby/src/request.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use std::os::raw::c_char;
2+
13
use magnus::{value::{qnil, ReprValue}, RString, Value};
24

35
use bytes::Bytes;
@@ -53,7 +55,7 @@ impl Request {
5355
let inner: VALUE = std::ptr::read(&rb_value as *const _ as *const VALUE);
5456
rb_str_resize(inner, 0);
5557
if body_len > 0 {
56-
rb_str_cat(inner, body.as_ptr(), body.len().try_into().unwrap());
58+
rb_str_cat(inner, body.as_ptr() as *const c_char, body.len().try_into().unwrap());
5759
}
5860
}
5961

0 commit comments

Comments
 (0)