diff --git a/codec/hal/idl_service/src/icodec_buffer.cpp b/codec/hal/idl_service/src/icodec_buffer.cpp index f5c7df02f3af7648c97b6ba17ab7c4eb01f6da23..37f97e6e116ba2a06d2a31f073e3456cd98fa706 100644 --- a/codec/hal/idl_service/src/icodec_buffer.cpp +++ b/codec/hal/idl_service/src/icodec_buffer.cpp @@ -137,7 +137,7 @@ int32_t ICodecBuffer::SyncWait(int fd, uint32_t timeout) retCode = -EPERM; errno = ETIME; } else if (retCode > 0) { - if (pollfds.revents & (POLLERR | POLLNVAL)) { + if (static_cast(pollfds.revents) & (POLLERR | POLLNVAL)) { retCode = -EPERM; errno = EINVAL; } diff --git a/codec/hal/v2.0/hdi_impl/src/icodec_buffer.cpp b/codec/hal/v2.0/hdi_impl/src/icodec_buffer.cpp index fd45f291bec70c31194f514bb7d1e95c61cefa21..3896e669988378bd56bd9ca855ee4d221200966c 100644 --- a/codec/hal/v2.0/hdi_impl/src/icodec_buffer.cpp +++ b/codec/hal/v2.0/hdi_impl/src/icodec_buffer.cpp @@ -105,7 +105,7 @@ int32_t ICodecBuffer::SyncWait(int fd, uint32_t timeout) retCode = -EPERM; errno = ETIME; } else if (retCode > 0) { - if (pollfds.revents & (POLLERR | POLLNVAL)) { + if (static_cast(pollfds.revents) & (POLLERR | POLLNVAL)) { retCode = -EPERM; errno = EINVAL; }