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

Improve SafeMath to support signed int operations #705

Closed
1 task done
facuspagnuolo opened this issue Jan 24, 2018 · 2 comments · Fixed by #1559
Closed
1 task done

Improve SafeMath to support signed int operations #705

facuspagnuolo opened this issue Jan 24, 2018 · 2 comments · Fixed by #1559
Assignees
Labels
feature New contracts, functions, or helpers.

Comments

@facuspagnuolo
Copy link
Contributor

facuspagnuolo commented Jan 24, 2018

  • 📈 This is a feature request.

The idea is to provide basic math operations (like add, sub, mul, etc) for signed integers. I think this could be added within SafeMath itself.

@cedricwalter
Copy link

see #714

@wbt
Copy link

wbt commented Oct 25, 2018

Just to create a cross-reference, PR#1484 expands on SafeMath for uint32s, which overflow at somewhat less astronomical values but don't have all the new potential issues that signed integers introduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New contracts, functions, or helpers.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants