Fix warning.

GitOrigin-RevId: 9f43d43faad9e19d56f97b506aa6f4c4efb3659e
This commit is contained in:
levlam 2019-02-12 04:35:30 +03:00
parent a919bfa358
commit 37efb237c7

View File

@ -1217,7 +1217,7 @@ class CliClient final : public Actor {
void on_cmd(string cmd) {
// TODO: need to remove https://en.wikipedia.org/wiki/ANSI_escape_code from cmd
cmd.erase(std::remove_if(cmd.begin(), cmd.end(), [](char c) { return 0 <= c && c < 32; }), cmd.end());
cmd.erase(std::remove_if(cmd.begin(), cmd.end(), [](unsigned char c) { return c < 32; }), cmd.end());
LOG(INFO) << "CMD:[" << cmd << "]";
string op;