提交 d031a77b 编写于 作者: wmmhello's avatar wmmhello

fix:[TD-25300]dead loop if getchar return EOF in arm64

上级 9a1b5da4
...@@ -501,7 +501,7 @@ int32_t shellReadCommand(char *command) { ...@@ -501,7 +501,7 @@ int32_t shellReadCommand(char *command) {
while (1) { while (1) {
c = taosGetConsoleChar(); c = taosGetConsoleChar();
if (c == EOF) { if (c == (char)EOF) {
return c; return c;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册