Found and fixed a memory leak in the rope strings

Also fixed a bit manipulation error in the GC.
This commit is contained in:
2026-05-10 15:39:04 +10:00
parent 3b813da1cf
commit 83fb5222a2
9 changed files with 124 additions and 6 deletions
+8 -2
View File
@@ -1,5 +1,5 @@
/*
fn swap(a, b) {
return b, a;
}
@@ -10,4 +10,10 @@ var c;
var d;
//BUG: still causes a segfault
c, d = swap(a, b);
c, d = swap(a, b);
*/
{ var str = "Hello"; var i = 0; while (i < 10_000) { str = str .. " World"; i++; } }