Browse Source

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

git-svn-id: trunk@12008 -
Jonas Maebe 16 years ago
parent
commit
eb130d7501
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/pexports.pas

+ 2 - 1
compiler/pexports.pas

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