Skip to content

Commit

Permalink
Added a cast from uint to size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeyerho committed Jun 5, 2012
1 parent 2b570d5 commit 6ddfc6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rust.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#[doc = "Rust wrappers around the raw JS apis"];

import libc::types::os::arch::c95::size_t;

export rt;
export cx;
export jsobj;
Expand All @@ -20,7 +22,7 @@ fn rt() -> rt {

impl methods for rt {
fn cx() -> cx {
@cx_rsrc({ptr: JS_NewContext(self.ptr, default_stacksize),
@cx_rsrc({ptr: JS_NewContext(self.ptr, default_stacksize as size_t),
rt: self})
}
}
Expand Down Expand Up @@ -161,4 +163,4 @@ mod test {
};
}

}
}

0 comments on commit 6ddfc6b

Please sign in to comment.