test: fix -Wbool-compare compiler warning (#3996)

Fixes: https://github.com/libuv/libuv/issues/3995
This commit is contained in:
Ben Noordhuis 2023-05-16 10:56:41 +02:00 committed by GitHub
parent e7ecd116e0
commit 1a56f68451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1573,7 +1573,7 @@ TEST_IMPL(fs_fstat_stdio) {
switch (ft) {
case UV_TTY:
case UV_NAMED_PIPE:
ASSERT(st->st_mode == ft == UV_TTY ? S_IFCHR : S_IFIFO);
ASSERT(st->st_mode == (ft == UV_TTY ? S_IFCHR : S_IFIFO));
ASSERT(st->st_nlink == 1);
ASSERT(st->st_rdev == (ft == UV_TTY ? FILE_DEVICE_CONSOLE : FILE_DEVICE_NAMED_PIPE) << 16);
break;