Skip to content
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

For std::min and std::max cast to like data types #2389

Merged
merged 1 commit into from
Jul 6, 2020

Conversation

jekriske-lilly
Copy link
Contributor

Casting to size_t to comply with std library min and max template requirements that the types should match instead of relying on the compiler to figure it out.

Since size_t can be many data types, depending on the architecture and compiler, this change should hopefully ensure it is correct.

Signed-off-by: Jeff Kriske <kriske_jeffery_e@lilly.com>
@codecov
Copy link

codecov bot commented Jul 4, 2020

Codecov Report

Merging #2389 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2389   +/-   ##
=======================================
  Coverage   70.69%   70.69%           
=======================================
  Files          94       94           
  Lines        7839     7839           
  Branches     1221     1221           
=======================================
  Hits         5542     5542           
  Misses       1925     1925           
  Partials      372      372           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 75f5b57...8591c4a. Read the comment docs.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@fmassa fmassa merged commit 67f5fcf into pytorch:master Jul 6, 2020
de-vri-es pushed a commit to fizyr-forks/torchvision that referenced this pull request Aug 4, 2020
Signed-off-by: Jeff Kriske <kriske_jeffery_e@lilly.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants