Browse Source

* fixed writing hex-encoded characters in string constants

git-svn-id: branches/hlcgllvm@28209 -
Jonas Maebe 11 years ago
parent
commit
bfe431913d
1 changed files with 1 additions and 1 deletions
  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;