瀏覽代碼

* fixed invalid type cast in case of errors in a library's export section

git-svn-id: trunk@12008 -
Jonas Maebe 16 年之前
父節點
當前提交
eb130d7501
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/pexports.pas

+ 2 - 1
compiler/pexports.pas

@@ -204,7 +204,8 @@ implementation
                         exportprocsym(srsym,hpname,index,options);
                         exportprocsym(srsym,hpname,index,options);
                       end
                       end
                   end
                   end
-                else
+                { can also be errorsym }
+                else if (srsym.typ=staticvarsym) then
                   begin
                   begin
                     if ((options and eo_name)=0) then
                     if ((options and eo_name)=0) then
                       { for "cvar" }
                       { for "cvar" }