瀏覽代碼

Merged revisions 234 via svnmerge from
/trunk

git-svn-id: branches/fixes_2_0@272 -

peter 20 年之前
父節點
當前提交
0fb9a5d30d
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      compiler/charset.pas

+ 2 - 3
compiler/charset.pas

@@ -176,11 +176,11 @@ unit charset;
          hp : punicodemap;
 
       const
-         mapcache : string = '';
          mapcachep : punicodemap = nil;
 
       begin
-         if (mapcache=s) and (mapcachep^.cpname=s) then
+         if assigned(mapcachep) and
+            (mapcachep^.cpname=s) then
            begin
               getmap:=mapcachep;
               exit;
@@ -191,7 +191,6 @@ unit charset;
               if hp^.cpname=s then
                 begin
                    getmap:=hp;
-                   mapcache:=s;
                    mapcachep:=hp;
                    exit;
                 end;