Allow calling stream.read(0)
This commit is contained in:
parent
367cb55eef
commit
99e89eb1e5
1 changed files with 1 additions and 1 deletions
|
|
@ -821,7 +821,7 @@ template useHeapMem(_: Natural) =
|
|||
addr buffer[0]
|
||||
|
||||
template useStackMem(n: static Natural) =
|
||||
var buffer: array[n, byte]
|
||||
var buffer: array[n + 1, byte]
|
||||
|
||||
template allocMem(_: Natural): ptr byte =
|
||||
addr buffer[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue