Browse Source

Ensure that $indirect symbols are not exported.

pkgutil.pas:
  * export_unit: correctly check the symbol name for the $indirect suffix

git-svn-id: branches/svenbarth/packages@28967 -
svenbarth 10 years ago
parent
commit
0da91a240e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/pkgutil.pas

+ 1 - 1
compiler/pkgutil.pas

@@ -193,7 +193,7 @@ implementation
                 procexport(name);
                 procexport(name);
               AT_DATA:
               AT_DATA:
                 begin
                 begin
-                  if pos(name,indirect_suffix)=length(name)-length(indirect_suffix)+1 then
+                  if pos(indirect_suffix,name)=length(name)-length(indirect_suffix)+1 then
                     continue;
                     continue;
                   varexport(name);
                   varexport(name);
                 end;
                 end;