-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix coverity issues: batch 2 #30088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix coverity issues: batch 2 #30088
Conversation
return std::numeric_limits<dst_type>::max(); | ||
} else if (val < std::numeric_limits<dst_type>::lowest()) { | ||
return std::numeric_limits<dst_type>::lowest(); | ||
if (std::numeric_limits<src_type>::max() > std::numeric_limits<dst_type>::max()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably it should be constexpr to resolve the coverity issue
but our bfloat16 impl doesn't have constexpr > and < operators overloaded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not performance critical, the code logic works correctly.
decided to move it to the separate PR
…tps://github.com/itikhono/openvino into itikhono/coverity_issues/control_flow_and_others
Details:
Control flow / Program hangs issues
Tickets: