We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72962c9 commit fdd4a77Copy full SHA for fdd4a77
cranelift/jit/examples/jit-minimal.rs
@@ -84,7 +84,7 @@ fn main() {
84
let code_b = module.get_finalized_function(func_b);
85
86
// Cast it to a rust function pointer type.
87
- let ptr_b = unsafe { mem::transmute::<_, fn() -> u32>(code_b) };
+ let ptr_b = unsafe { mem::transmute::<_, extern "C" fn() -> u32>(code_b) };
88
89
// Call it!
90
let res = ptr_b();
0 commit comments