Change the step
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
c57e9c1b7a
commit
64f41ad5b9
2 changed files with 2 additions and 2 deletions
4
testdata/addupto.zig
vendored
4
testdata/addupto.zig
vendored
|
|
@ -2,8 +2,8 @@ const expect = @import("std").testing.expect;
|
||||||
|
|
||||||
pub export fn addUpTo(to: u32) u32 {
|
pub export fn addUpTo(to: u32) u32 {
|
||||||
var res: u32 = 0;
|
var res: u32 = 0;
|
||||||
for (0..to) |i| {
|
for (0..to) |_| {
|
||||||
res += @intCast(i);
|
res += to;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
BIN
testdata/zig-out/bin/addUpTo.wasm
vendored
BIN
testdata/zig-out/bin/addUpTo.wasm
vendored
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue