Sfoglia il codice sorgente

0004 Fixed interface method RTTI bug for methods with the same signature.

git-svn-id: branches/interfacertti@30819 -
steve 10 anni fa
parent
commit
65ec5fe2c8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      compiler/ncgrtti.pas

+ 1 - 1
compiler/ncgrtti.pas

@@ -480,7 +480,7 @@ implementation
       count:=0;
       for i:=0 to st.SymList.Count-1 do
         if (tsym(st.SymList[i]).typ=procsym) then
-          inc(count);
+          inc(count, tprocsym(st.SymList[i]).ProcdefList.count);
 
       current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_16bit(count));
       current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_16bit(count));