diff --git a/src/unix/tty.c b/src/unix/tty.c index 191964da..a1ea433f 100644 --- a/src/unix/tty.c +++ b/src/unix/tty.c @@ -108,7 +108,7 @@ int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) { struct termios tmp; int fd; - if (tty->mode == mode) + if (tty->mode == (int) mode) return 0; fd = uv__stream_fd(tty);