We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f72d72b commit 7974ad0Copy full SHA for 7974ad0
examples/arrays.calc
@@ -8,7 +8,7 @@ arrMake(size, bytesize) = malloc(size*bytesize)
8
arrGet(arr, index, bytesize) =
9
reduce(
10
(x, y) = x + (y<<8),
11
- slice(arr, index*bytesize, bytesize)
+ slice(arr, index*bytesize, index*bytesize+bytesize)
12
)
13
14
arrSet(arr, index, bytesize, value) =
0 commit comments