!2272 告警修复

Merge pull request !2272 from swg/fix
This commit is contained in:
openharmony_ci 2024-11-19 03:27:17 +00:00 committed by Gitee
commit c21d782b0a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1769,7 +1769,7 @@ ErrCode IInnerOsAccountManager::WaitForAnimationReady(int32_t pipeFd)
ACCOUNT_LOGE("Timeout waiting for message from child process.");
return ERR_OSACCOUNT_SERVICE_INNER_ANIMATION_TIMEOUT;
}
if (!(fds[0].revents & POLLIN)) {
if (!(static_cast<uint16_t>(fds[0].revents) & POLLIN)) {
ACCOUNT_LOGE("Unexpected event in poll: %{public}d", fds[0].revents);
return ERR_OSACCOUNT_SERVICE_INNER_ANIMATION_UNEXPECTED_EVENT;
}