This commit is contained in:
otya128 committed 2016-02-23 21:55:54 +09:00
1 parent df7ed4aa28
commit 60770eb2f4
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -221,7 +221,7 @@ class Compiler
VMVariable[wstring] global;
int[wstring] globalLabel;
Function[wstring] functions;
sizediff_t globalIndex = 0;
int globalIndex = 0;
void genCode(Code c)
{
code ~= c;
@@ -1062,7 +1062,7 @@ class Compiler
global = vm.currentSlot.globalTable;
auto start = vm.currentSlot.code.length;
this.code = vm.currentSlot.code;
globalIndex = vm.currentSlot.global.length;
globalIndex = cast(int)vm.currentSlot.global.length;
functions = vm.currentSlot.functions;
compileProgram();
vm.directSlot(start, code, globalIndex + 1, global, functions, globalScope.data, globalLabel, debugInfo);