Browse Source

* Replaced strpcopy() by its equivalent. With sysutils in uses clause, strpcopy resolves to ansistring version, inserting a redundant conversion to ansistring.

git-svn-id: trunk@24360 -
sergei 12 years ago
parent
commit
8e6d6d0027
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/aasmtai.pas

+ 2 - 1
compiler/aasmtai.pas

@@ -1891,7 +1891,8 @@ implementation
           typ:=ait_string;
           typ:=ait_string;
           len:=length(_str);
           len:=length(_str);
           getmem(str,len+1);
           getmem(str,len+1);
-          strpcopy(str,_str);
+          move(_str[1],str^,len);
+          str[len]:=#0;
        end;
        end;