Skip to content

Commit 63ef59a

Browse files
authored
Merge pull request #60 from GuillaumeGomez/fix-windows
Fix compilation error on windows
2 parents 1761236 + 2d26b28 commit 63ef59a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gccjit_sys/src/dynload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ mod platform {
9292
pub unsafe fn get(&self, sym: &CStr) -> Result<*mut (), String> {
9393
let ptr = GetProcAddress(self.0, sym.as_ptr() as *const _);
9494
if ptr.is_null() {
95-
Some("cannot load symbol".to_string())
95+
Err("cannot load symbol".to_string())
9696
}
9797
else {
9898
Ok(ptr.cast())

0 commit comments

Comments
 (0)