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

U64 Subtraction Overflow Error #350

Closed
icegriffinguru opened this issue Jun 3, 2024 · 1 comment
Closed

U64 Subtraction Overflow Error #350

icegriffinguru opened this issue Jun 3, 2024 · 1 comment

Comments

@icegriffinguru
Copy link

Describe the bug
I accidently subtracted 10^9 from 0u64 and it did not throw an error but returned 2^64 - 10^9.

Suggest
Is there a way implementing SafeMath operation to check math overflows?

@Ben-Rey
Copy link
Contributor

Ben-Rey commented Jun 10, 2024

@Ben-Rey Ben-Rey closed this as completed Jun 10, 2024
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

2 participants