mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-30 21:52:18 +00:00
Runtime 'none' by default
This commit is contained in:
@@ -49,7 +49,7 @@ class NBodySystem {
|
||||
py += b.vy * m;
|
||||
pz += b.vz * m;
|
||||
}
|
||||
bodies[0].offsetMomentum(px, py, pz);
|
||||
unchecked(bodies[0]).offsetMomentum(px, py, pz);
|
||||
}
|
||||
advance(dt) {
|
||||
var bodies = this.bodies;
|
||||
@@ -139,6 +139,6 @@ function bench(steps) {
|
||||
exports.bench = bench;
|
||||
function getBody(index) {
|
||||
var bodies = system.bodies;
|
||||
return index < bodies.length ? bodies[index] : null;
|
||||
return index < bodies.length ? unchecked(bodies[index]) : null;
|
||||
}
|
||||
exports.getBody = getBody;
|
||||
|
Reference in New Issue
Block a user