Browse Source

* characters <= 127, not just < 127, can be concatenated to an
ansistring without conversion

git-svn-id: trunk@9395 -

Jonas Maebe 17 years ago
parent
commit
02c714aec1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/unix/cwstring.pp

+ 1 - 1
rtl/unix/cwstring.pp

@@ -315,7 +315,7 @@ var
 begin
 begin
   { we know that s is unique -> avoid uniquestring calls}
   { we know that s is unique -> avoid uniquestring calls}
   p:=@s[index];
   p:=@s[index];
-  if (nc<$7f) then
+  if (nc<=127) then
     ConcatCharToAnsiStr(char(nc),s,index)
     ConcatCharToAnsiStr(char(nc),s,index)
   else
   else
     begin
     begin