Typecast the ASCII ESC char
authorWuzzy <Wuzzy2@mail.ru>
Fri, 02 Nov 2018 15:48:58 +0100
changeset 14085 af203fb307a7
parent 14084 a173557250a3
child 14086 5d42204ac35e
child 14087 83a8f534b82c
Typecast the ASCII ESC char
hedgewars/uUtils.pas
--- a/hedgewars/uUtils.pas	Fri Nov 02 14:33:05 2018 +0100
+++ b/hedgewars/uUtils.pas	Fri Nov 02 15:48:58 2018 +0100
@@ -264,7 +264,7 @@
     i:= Pos(e, a);
     if (i > 1) and (a[i - 1] = '\') then
         begin
-        a[i]:= $1B; // ASCII ESC
+        a[i]:= Char($1B); // ASCII ESC
         Delete(a, i - 1, 1);
         end
     else
@@ -278,7 +278,7 @@
 var i: LongInt;
 begin
 repeat
-    i:= Pos($1B, a); // ASCII ESC
+    i:= Pos(Char($1B), a); // ASCII ESC
     if (i > 0) then
         begin
         a[i]:= e;