瀏覽代碼

* fixed getsingletonarraydef() so that it actually returns are arraydef of
one element rather than of two elements

git-svn-id: branches/jvmbackend@18980 -

Jonas Maebe 14 年之前
父節點
當前提交
015ed4d0b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/symdef.pas

+ 1 - 1
compiler/symdef.pas

@@ -6655,7 +6655,7 @@ implementation
             { since these arraydef can be reused anywhere in the current
             { since these arraydef can be reused anywhere in the current
               unit, add them to the global/staticsymtable }
               unit, add them to the global/staticsymtable }
             symtablestack.push(current_module.localsymtable);
             symtablestack.push(current_module.localsymtable);
-            res^.Data:=tarraydef.create(0,1,s32inttype);
+            res^.Data:=tarraydef.create(0,0,s32inttype);
             tarraydef(res^.Data).elementdef:=def;
             tarraydef(res^.Data).elementdef:=def;
             symtablestack.pop(current_module.localsymtable);
             symtablestack.pop(current_module.localsymtable);
           end;
           end;