Skip to content

Fix coverity issue: part 3 #30145

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

itikhono
Copy link
Contributor

Details:

  • item1
  • ...

Tickets:

  • ticket-id

@github-actions github-actions bot added the category: transformations OpenVINO Runtime library - Transformations label Apr 15, 2025
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()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: execute it in compile time

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()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (std::numeric_limits<src_type>::max() > std::numeric_limits<dst_type>::max()) {
if constexpr (std::numeric_limits<src_type>::max() > std::numeric_limits<dst_type>::max()) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: transformations OpenVINO Runtime library - Transformations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants