Closed ivanrodriguez3753 closed 3 years ago
I think you're right :) The code has only been tested in terms of being compiled with LLVM, which explains how this ancient bug could survive this long.
It was causing a bug in my compiler, tested by putting a print statement after grow_begin: label and seeing it was only called once (at the beginning when length, maxlen are both 0. Further tested by printing length, maxlen before the icmp and the result was 0010203040... etc meaning maxlen was never being updated. Other than that, your website was extremely helpful in finishing up my project.
ah sorry I forgot to merge this! thanks!
I think you forgot to update maxlen