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

Fix [-Wimplicit-int-float-conversion] #435

Closed
wants to merge 1 commit into from
Closed

Fix [-Wimplicit-int-float-conversion] #435

wants to merge 1 commit into from

Conversation

DuffsDevice
Copy link

Fixed [-Wimplicit-int-float-conversion] as in:
boost/math/special_functions/trunc.hpp:65:12: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
if((r > (std::numeric_limits::max)()) || (r < (std::numeric_limits::min)()))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixed [-Wimplicit-int-float-conversion] as in:
boost/math/special_functions/trunc.hpp:65:12: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
   if((r > (std::numeric_limits<int>::max)()) || (r < (std::numeric_limits<int>::min)()))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@DuffsDevice DuffsDevice changed the title Fixed [-Wimplicit-int-float-conversion] Fix [-Wimplicit-int-float-conversion] Sep 17, 2020
@mborland
Copy link
Member

mborland commented Apr 6, 2023

Superseded by: #968

@mborland mborland closed this Apr 6, 2023
@DuffsDevice DuffsDevice deleted the patch-1 branch August 24, 2023 08:24
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