diff options
author | Julien Dessaux | 2021-11-11 21:49:53 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-11-11 21:49:53 +0100 |
commit | 98fe41748865e2b22b115627ef3297a671f3100d (patch) | |
tree | bf50a17515b96954d0acb26a523c99df65d4872f /src | |
parent | Simplified some stack stack code (diff) | |
download | nimfunge98-98fe41748865e2b22b115627ef3297a671f3100d.tar.gz nimfunge98-98fe41748865e2b22b115627ef3297a671f3100d.tar.bz2 nimfunge98-98fe41748865e2b22b115627ef3297a671f3100d.zip |
Fixed stack transfert sizing bug1.0.2
Diffstat (limited to '')
-rw-r--r-- | src/stack.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stack.nim b/src/stack.nim index 4565b5c..b100263 100644 --- a/src/stack.nim +++ b/src/stack.nim @@ -62,7 +62,7 @@ func Transfert*(toss: var Stack, soss: var Stack, n: int) = ## (aka begin) and '}' (aka end) stackstack commands toss.height += n if toss.height > toss.size: - toss.size += 32 + toss.size = toss.height toss.data.setlen(toss.size) for i in 1..min(soss.height, n): toss.data[toss.height-i] = soss.data[soss.height-i] |