Skip to content

Commit 3142d88

Browse files
committed
improvements
now offset is not a count of objects to be sliced, but the end index
1 parent 7974ad0 commit 3142d88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/stdmem.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ def mem_set(mem: List[int], offset: int, value: int) -> int:
2424
return 0
2525

2626

27-
def slice_(mem: List[int], begin: int, offset: int) -> List[int]:
28-
return mem[begin:begin+offset]
27+
def slice_(mem: List[int], begin: int, end: int) -> List[int]:
28+
return mem[begin:end]

0 commit comments

Comments
 (0)