Skip to content

Commit 4f0ecf2

Browse files
committed
fix: compatibility with aarch64 target
1 parent cb9ef72 commit 4f0ecf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module_loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ pub unsafe extern "C" fn js_module_normalize(
8989
fn throw_internal_error(ctx: *mut q::JSContext, err: &str) {
9090
let err = CString::new(err).unwrap();
9191
unsafe {
92-
q::JS_ThrowInternalError(ctx, err.as_ptr() as *const i8);
92+
q::JS_ThrowInternalError(ctx, err.as_ptr() as *const c_char);
9393
}
9494
}

0 commit comments

Comments
 (0)