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

truncation warning in 4.3.8 #80

Closed
Philippe91 opened this issue Dec 4, 2022 · 3 comments
Closed

truncation warning in 4.3.8 #80

Philippe91 opened this issue Dec 4, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Philippe91
Copy link

With the new 4.3.8, there is a truncation warning (warning == error for me). This warning happens when the container has a 32 bit range (eg. Qt5 vector).

This is in Rng::shuffle:

auto b1 = static_cast<size_t>

suggested fix:

auto b1 = static_cast<decltype(i)>

Same thing for b2 = ....

@martinus
Copy link
Owner

martinus commented Dec 5, 2022

Can you give the current master version a try?

@martinus martinus reopened this Dec 5, 2022
@Philippe91
Copy link
Author

4.3.9 is ok 🙂

@martinus martinus closed this as completed Dec 5, 2022
@martinus
Copy link
Owner

martinus commented Dec 5, 2022

thanks!

@martinus martinus self-assigned this Feb 16, 2023
@martinus martinus added the bug Something isn't working label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants