about summary refs log tree commit diff
path: root/src/librustc_trans/trans/machine.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_trans/trans/machine.rs')
-rw-r--r--src/librustc_trans/trans/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_trans/trans/machine.rs b/src/librustc_trans/trans/machine.rs
index 9b17c4f8baa..ce37d38dc89 100644
--- a/src/librustc_trans/trans/machine.rs
+++ b/src/librustc_trans/trans/machine.rs
@@ -99,7 +99,7 @@ pub fn llalign_of_min(cx: &CrateContext, ty: Type) -> llalign {
     }
 }
 
-pub fn llelement_offset(cx: &CrateContext, struct_ty: Type, element: uint) -> u64 {
+pub fn llelement_offset(cx: &CrateContext, struct_ty: Type, element: usize) -> u64 {
     unsafe {
         return llvm::LLVMOffsetOfElement(cx.td().lltd, struct_ty.to_ref(),
                                          element as u32);