Explorar el Código

* fixed writing hex-encoded characters in string constants

git-svn-id: branches/hlcgllvm@28209 -
Jonas Maebe hace 11 años
padre
commit
bfe431913d
Se han modificado 1 ficheros con 1 adiciones y 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;