Explorar o código

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

git-svn-id: trunk@9395 -

Jonas Maebe %!s(int64=17) %!d(string=hai) anos
pai
achega
02c714aec1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/unix/cwstring.pp

+ 1 - 1
rtl/unix/cwstring.pp

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