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

abs() overflow causes val to be a unit (1) less #24

Closed
gvelim opened this issue Feb 18, 2022 · 0 comments
Closed

abs() overflow causes val to be a unit (1) less #24

gvelim opened this issue Feb 18, 2022 · 0 comments

Comments

@gvelim
Copy link
Owner

gvelim commented Feb 18, 2022

min + NumType::MAX + (i - NumType::MAX as usize) as NumType

@gvelim gvelim closed this as completed Feb 20, 2022
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

No branches or pull requests

1 participant