Skip to content

Commit a2fc5c8

Browse files
authored
Fix bug in type sizes in engine component
1 parent 35ebeb0 commit a2fc5c8

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
@@ -76,7 +76,7 @@ pub trait ExecutionEngine<'a>:'a + Sized + DisposeRef where LLVMExecutionEngineR
7676
/// type of the global value at this point.
7777
unsafe fn find_global<T>(&'a self, name: &str) -> Option<&'a T> {
7878
util::with_cstr(name, |ptr|
79-
mem::transmute(engine::LLVMGetGlobalValueAddress(self.into(), ptr))
79+
mem::transmute(engine::LLVMGetGlobalValueAddress(self.into(), ptr) as usize)
8080
)
8181
}
8282
}

0 commit comments

Comments
 (0)