diff options
Diffstat (limited to 'src/comp/metadata')
| -rw-r--r-- | src/comp/metadata/creader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/metadata/creader.rs b/src/comp/metadata/creader.rs index 10f88cb0ae5..fd87b54a0a6 100644 --- a/src/comp/metadata/creader.rs +++ b/src/comp/metadata/creader.rs @@ -221,7 +221,7 @@ fn get_metadata_section(sess: session::session, let name = unsafe { str::from_cstr(name_buf) }; if str::eq(name, sess.targ_cfg.target_strs.meta_sect_name) { let cbuf = llvm::LLVMGetSectionContents(si.llsi); - let csz = llvm::LLVMGetSectionSize(si.llsi); + let csz = llvm::LLVMGetSectionSize(si.llsi) as uint; unsafe { let cvbuf: *u8 = unsafe::reinterpret_cast(cbuf); ret option::some::<@[u8]>(@vec::unsafe::from_buf(cvbuf, csz)); |
