Skip to content

Commit

Permalink
fix: aarch64 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Icemic committed Jul 7, 2024
1 parent 2c87faf commit cf42538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::{
convert::TryFrom,
ffi::{c_int, c_void},
ffi::{c_char, c_int, c_void},
ptr::null_mut,
sync::{Arc, Mutex},
};
Expand Down Expand Up @@ -470,7 +470,7 @@ impl Context {
let ret = unsafe {
q::JS_LoadModule(
self.context,
".\0".as_ptr() as *const i8,
".\0".as_ptr() as *const c_char,
filename_c.as_ptr(),
)
};
Expand Down

0 comments on commit cf42538

Please sign in to comment.