Permalink
Browse files

all tests pass

  • Loading branch information...
1 parent db16fce commit e39db5a100b5c65f50b658362a5796ae6b2a5411 @nikomatsakis nikomatsakis committed with brson Oct 10, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/test/bench/shootout-nbody.rs
  2. +1 −1 src/test/compile-fail/native-type-mismatch.rs
@@ -70,7 +70,7 @@ mod NBodySystem {
while i < 5 { move(bodies[i], dt); i += 1; }
}
- fn advance_one(bi: Body::props, bj: Body::props, dt: float) {
+ fn advance_one(bi: Body::props, bj: Body::props, dt: float) unsafe {
let dx: float = bi.x - bj.x;
let dy: float = bi.y - bj.y;
let dz: float = bi.z - bj.z;
@@ -95,7 +95,7 @@ mod NBodySystem {
b.z += dt * b.vz;
}
- fn energy(bodies: [Body::props]) -> float {
+ fn energy(bodies: [Body::props]) -> float unsafe {
let dx: float;
let dy: float;
let dz: float;
@@ -1,7 +1,7 @@
// error-pattern:expected *Mb but found native
use std;
-fn main() {
+fn main() unsafe {
let f: std::os::libc::FILE = std::io::rustrt::rust_get_stdin();
std::os::libc::fopen(f, f);
}

0 comments on commit e39db5a

Please sign in to comment.