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
Avoid narrowing conversion in image_wrapper on 32-bit. #10736
Conversation
Still fails:
|
same fix applies there... pushed it |
Now it succeeds, thanks! |
Just to check, the issue here is that we are implicitly casting a uint -> int which chops off half of the range of the uint and we were probably using uint because the rows / columns should always be positive. Now we are doing the cast explicitly in the If this was going to cause any issue with the maximum size image we could render, it already would be? |
Candidate for backport to 2.2.x because this fixes a 'does not compile' bug. |
No, the issue is that (at the Now Now that means that yes, if someone passes a negative value for |
Backport PR #10736 on branch v2.2.x
PR Summary
@yurivict can you check whether that fixes #10698?
PR Checklist