Explorar o código

* fixed writing hex-encoded characters in string constants

git-svn-id: branches/hlcgllvm@28209 -
Jonas Maebe %!s(int64=11) %!d(string=hai) anos
pai
achega
bfe431913d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/llvm/agllvm.pas

+ 1 - 1
compiler/llvm/agllvm.pas

@@ -822,7 +822,7 @@ implementation
                       #1..#31,
                    #128..#255,
                           '"',
-                          '\' : s:='\'+tostr(ord(ch) shr 8)+tostr((ord(ch) and $f));
+                          '\' : s:='\'+hexStr(ord(ch),2);
                  else
                    s:=ch;
                  end;