Skip to content

Commit 176481c

Browse files
committed
fix build
1 parent d4e2739 commit 176481c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gen.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ fn ctypedef_to_rs(ctx: &mut GenCtx, name: String, ty: &Type) -> Vec<Gc<ast::Item
441441
}
442442

443443
fn cstruct_to_rs(ctx: &mut GenCtx, name: String, fields: Vec<FieldInfo>) -> Gc<ast::Item> {
444-
let mut unnamed = 0;
444+
let mut unnamed: uint = 0;
445445
let fs = fields.iter().map(|f| {
446446
let f_name = if f.name.is_empty() || "_" == f.name.as_slice() {
447447
unnamed += 1;
@@ -554,7 +554,7 @@ fn cunion_to_rs(ctx: &mut GenCtx, name: String, layout: Layout, fields: Vec<Fiel
554554
&ctx.ext_cx,
555555
unsafe { ::std::mem::transmute(self) }
556556
);
557-
let mut unnamed = 0;
557+
let mut unnamed: uint = 0;
558558
let fs = fields.iter().map(|f| {
559559
let f_name = if f.name.is_empty() || "_" == f.name.as_slice() {
560560
unnamed += 1;
@@ -700,7 +700,7 @@ fn cfuncty_to_rs(ctx: &mut GenCtx,
700700
_ => cty_to_rs(ctx, rty)
701701
};
702702

703-
let mut unnamed = 0;
703+
let mut unnamed: uint = 0;
704704
let args: Vec<ast::Arg> = aty.iter().map(|arg| {
705705
let (ref n, ref t) = *arg;
706706

0 commit comments

Comments
 (0)