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

clang-10 fails to compile rapidcheck: implicit conversion from 'std::__1::numeric_limits<unsigned long>::type' (aka 'unsigned long') to 'double' changes value from 18446744073709551615 to 18446744073709551616 #252

Closed
yurivict opened this issue Mar 26, 2020 · 0 comments · Fixed by #253

Comments

@yurivict
Copy link

wrkdirs/usr/ports/devel/rapidcheck/work/rapidcheck-d9482c6/include/rapidcheck/gen/Numeric.hpp:46:43: error: implicit conversion from 'std::__1::numeric_limits<unsigned long>::type' (aka 'unsigned long') to 'double' changes value from 18446744073709551615 to 18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
      (stream.next<uint64_t>() * scale) / std::numeric_limits<uint64_t>::max();
                                        ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/devel/rapidcheck/work/rapidcheck-d9482c6/include/rapidcheck/gen/Numeric.hpp:46:43: error: implicit conversion from 'std::__1::numeric_limits<unsigned long>::type' (aka 'unsigned long') to 'double' changes value from 18446744073709551615 to 18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
      (stream.next<uint64_t>() * scale) / std::numeric_limits<uint64_t>::max();
                                        ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Log: http://beefy18.nyi.freebsd.org/data/head-amd64-default/p529018_s359264/logs/rapidcheck-g20190815.log (IPv6 URL)

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 a pull request may close this issue.

1 participant