浏览代码

Patched bug with symbol insertion (removed variables and caused a GC bug)

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7871 8c9fc860-2736-0410-a75d-ab315db34111
felixf 7 年之前
父节点
当前提交
ffee4e604e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/FoxSyntaxTree.Mod

+ 1 - 1
source/FoxSyntaxTree.Mod

@@ -4725,7 +4725,7 @@ TYPE
 			ASSERT(v # NIL);
 			ASSERT(after # NIL);
 			v.nextVariable := after.nextVariable;
-			after.nextVariable := v.nextVariable;
+			after.nextVariable := v;
 			IF after = lastVariable THEN lastVariable := v END; 
 		END InsertVariable;