Skip to content

Commit

Permalink
Fixed types for arm aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh authored and dginev committed Feb 15, 2022
1 parent c85ee22 commit 8cfe923
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ pub fn parse_bytes(file_string_as_bytes: Vec<u8>, url: &str) -> Result<Styleshee

let bytes = xsl_file_c_str.as_bytes_with_nul();
let ptr = bytes.as_ptr();
let file = ptr as *const i8;
let file = ptr as *const libc::c_char;

let bytes = url_c_str.as_bytes_with_nul();
let ptr = bytes.as_ptr();
let url = ptr as *const i8;
let url = ptr as *const libc::c_char;

let xml = xmlReadMemory(file, xsl_file_string_len, url, std::ptr::null::<i8>(), 0);
let xml = xmlReadMemory(file, xsl_file_string_len, url, std::ptr::null::<libc::c_char>(), 0);

let ptr = xsltParseStylesheetDoc(xml);

Expand Down
2 changes: 1 addition & 1 deletion src/stylesheet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Stylesheet {

let params_cstrings = params_cstrings_result?;

let mut params_cstrings_pointers: Vec<*const i8> = params_cstrings.iter()
let mut params_cstrings_pointers: Vec<*const libc::c_char> = params_cstrings.iter()
.map(|cstr| cstr.as_ptr())
.collect();

Expand Down

0 comments on commit 8cfe923

Please sign in to comment.