2
0
Эх сурвалжийг харах

* fixed writing hex-encoded characters in string constants

git-svn-id: branches/hlcgllvm@28209 -
Jonas Maebe 11 жил өмнө
parent
commit
bfe431913d

+ 1 - 1
compiler/llvm/agllvm.pas

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