From ba4a851017bf93cf1579bff3b3ff5839c06c98b7 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 28 Apr 2023 16:46:28 +0300 Subject: [PATCH] tg_cli: fix variable type. --- td/telegram/cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 7d04ee2a9..39da1e646 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -2035,7 +2035,7 @@ class CliClient final : public Actor { // https://en.wikipedia.org/wiki/ANSI_escape_code#Terminal_input_sequences if (cmd[i] == 27 && cmd[i + 1] == '[') { // likely an ANSI escape code - int j = i + 2; + auto j = i + 2; if ('1' <= cmd[j] && cmd[j] <= '9') { while ('0' <= cmd[j] && cmd[j] <= '9') { j++;