Forráskód Böngészése

* 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 éve
szülő
commit
015ed4d0b6
1 módosított fájl, 1 hozzáadás és 1 törlés
  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
               unit, add them to the global/staticsymtable }
             symtablestack.push(current_module.localsymtable);
-            res^.Data:=tarraydef.create(0,1,s32inttype);
+            res^.Data:=tarraydef.create(0,0,s32inttype);
             tarraydef(res^.Data).elementdef:=def;
             symtablestack.pop(current_module.localsymtable);
           end;