SerpentCompiler: minor array compilation bug

This commit is contained in:
romanman 2014-06-01 10:44:24 +03:00
parent 13ae5387dd
commit 6726c8dcf9
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ public class SerpentToAssemblyCompiler extends SerpentBaseVisitor<String> {
throw new Error("array with that name was not defined");
}
int allocSize = 0;
int allocSize = 32;
for (int i = 0; i < order; ++i ){
String var = arraysIndex.get(i);
allocSize += arraysSize.get(var);