summary refs log tree commit diff
path: root/src/comp/metadata
diff options
context:
space:
mode:
authorHaitao Li <lihaitao@gmail.com>2012-01-16 18:21:01 +0800
committerHaitao Li <lihaitao@gmail.com>2012-01-19 02:10:36 +0800
commitdde41869ce2ef1d66e753fc8b4efc7d917c77875 (patch)
treeee9ea278fa981a8188a7d4cdb11201df10a81478 /src/comp/metadata
parentf03eb96f39dd616d8213cadf337b9d0b0984a687 (diff)
downloadrust-dde41869ce2ef1d66e753fc8b4efc7d917c77875.tar.gz
rust-dde41869ce2ef1d66e753fc8b4efc7d917c77875.zip
Use ctypes in native function declarations
Diffstat (limited to 'src/comp/metadata')
-rw-r--r--src/comp/metadata/creader.rs2
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));