Skip to content

Commit 462eeaf

Browse files
committed
Fix usize as u64
1 parent 5c7bc8b commit 462eeaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl<'a, 'b:'a> ExecutionEngine<'a, 'b> for JitEngine<'b> {
151151
MCJMM: ptr::null_mut()
152152
};
153153
let size = mem::size_of::<LLVMMCJITCompilerOptions>();
154-
let result = engine::LLVMCreateMCJITCompilerForModule(&mut ee, (&*module).into(), &mut options, size as u64, &mut out);
154+
let result = engine::LLVMCreateMCJITCompilerForModule(&mut ee, (&*module).into(), &mut options, size, &mut out);
155155
if result == 0 {
156156
Ok(ee.into())
157157
} else {

0 commit comments

Comments
 (0)