Skip to content

Commit 7974ad0

Browse files
committed
fixes
fixed due to new slice ABI
1 parent f72d72b commit 7974ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/arrays.calc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ arrMake(size, bytesize) = malloc(size*bytesize)
88
arrGet(arr, index, bytesize) =
99
reduce(
1010
(x, y) = x + (y<<8),
11-
slice(arr, index*bytesize, bytesize)
11+
slice(arr, index*bytesize, index*bytesize+bytesize)
1212
)
1313

1414
arrSet(arr, index, bytesize, value) =

0 commit comments

Comments
 (0)