-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Ecma edit for conv.ovf.<to type>.un.
#56450
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
Changes from 1 commit
ec43add
4c33ff7
da5491a
03cbaca
bc184e9
8277151
53a92e4
b53ff87
3c28df2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -921,7 +921,7 @@ conv.ovf.u4.un -> uint.MaxValue (0xFFFFFFFF) | |
|
|
||
| However, the source of these opcodes can be a float value and it was not clear how in such case .un should be treated. The ECMA was saying: ""The item on the top of the stack is treated as an unsigned value before the conversion." but there was no definition of "treated" so the result of: | ||
| ldc.r4 -1 | ||
| conv.ovf.i4.un | ||
| conv.ovf.i4.un | ||
| was ambiguous, it could treat -1 as 0xFFFFFFFF and return 0xFFFFFFFF or it could throw an overflow exception. | ||
|
|
||
| ### III.3.19, conv.ovf.to type.un (page 354) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be put into a new section describing feature area. Effectively, each set of changes to the Ecma standard describes what the general impact is, and then there is the modification to the actual standardese. As it is this work is appended onto the covariant return types work, but really should be in its own chunk.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, I have added a new chapter and tried to add a justification for the change. I have not found a template for this, looks like different chapters are organized differently, please tell me if you want me to add issue numbers, link to the current standard, or something else. |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.