From d031a77b58d87184299c1435e51a1333becdfd64 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Thu, 20 Jul 2023 15:40:41 +0800 Subject: [PATCH] fix:[TD-25300]dead loop if getchar return EOF in arm64 --- tools/shell/src/shellCommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/shell/src/shellCommand.c b/tools/shell/src/shellCommand.c index 0e305f57e9..8c91ff53e2 100644 --- a/tools/shell/src/shellCommand.c +++ b/tools/shell/src/shellCommand.c @@ -501,7 +501,7 @@ int32_t shellReadCommand(char *command) { while (1) { c = taosGetConsoleChar(); - if (c == EOF) { + if (c == (char)EOF) { return c; } -- GitLab