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

Exception on overflow in signed->unsigned conversion #1154

Closed
pirapira opened this issue Oct 5, 2016 · 1 comment
Closed

Exception on overflow in signed->unsigned conversion #1154

pirapira opened this issue Oct 5, 2016 · 1 comment

Comments

@pirapira
Copy link
Member

pirapira commented Oct 5, 2016

When a signed integer is converted to an unsigned integer of the same size, the negative numbers cannot be represented in the target type. This is a form of overflow, and should throw an exception following the discussion in #796.

(Note: C treats "unsigned->signed" and "signed->unsigned" differently. "signed->unsigned" is always defined while "unsigned->signed" is sometimes undefined. I don't know the reason.)

@pirapira
Copy link
Member Author

Delegated back to #796.

axic pushed a commit that referenced this issue Nov 20, 2018
* Started writing proposal

* Added more commentary and removed comments

* Update and rename eip-oracle_interface.md to eip-1154.md

* Add discussions-to URL

* Corrected discussions-to link

* Expand on use cases and types of oracles supported
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