mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
docs: remove the word overflow when we are talking about invalid values
This commit is contained in:
parent
547deec4be
commit
5d7a1fda39
@ -114,28 +114,28 @@ the boolean values before they are used as the condition for
|
|||||||
In addition to the design principle above, the Solidity compiler
|
In addition to the design principle above, the Solidity compiler
|
||||||
cleans input data when it is loaded onto the stack.
|
cleans input data when it is loaded onto the stack.
|
||||||
|
|
||||||
Different types have different rules for cleaning up overflows:
|
Different types have different rules for cleaning up invalid values:
|
||||||
|
|
||||||
+---------------+---------------+------------------+
|
+---------------+---------------+-------------------+
|
||||||
|Type |Cleaned Form |Overflow Means |
|
|Type |Valid Valies |Invalid Values Mean|
|
||||||
+===============+===============+==================+
|
+===============+===============+===================+
|
||||||
|enum of n |0 until n - 1 |exception |
|
|enum of n |0 until n - 1 |exception |
|
||||||
|members | | |
|
|members | | |
|
||||||
+---------------+---------------+------------------+
|
+---------------+---------------+-------------------+
|
||||||
|bool |0 or 1 |zero or nonzero |
|
|bool |0 or 1 |1 |
|
||||||
+---------------+---------------+------------------+
|
+---------------+---------------+-------------------+
|
||||||
|signed integers|sign-extended |currently silently|
|
|signed integers|sign-extended |currently silently |
|
||||||
| |word |wraps; in the |
|
| |word |wraps; in the |
|
||||||
| | |future exceptions |
|
| | |future exceptions |
|
||||||
| | |will be thrown |
|
| | |will be thrown |
|
||||||
| | | |
|
| | | |
|
||||||
| | | |
|
| | | |
|
||||||
+---------------+---------------+------------------+
|
+---------------+---------------+-------------------+
|
||||||
|unsigned |higher bits |currently silently|
|
|unsigned |higher bits |currently silently |
|
||||||
|integers |zeroed |wraps; in the |
|
|integers |zeroed |wraps; in the |
|
||||||
| | |future exceptions |
|
| | |future exceptions |
|
||||||
| | |will be thrown |
|
| | |will be thrown |
|
||||||
+---------------+---------------+------------------+
|
+---------------+---------------+-------------------+
|
||||||
|
|
||||||
|
|
||||||
*****************
|
*****************
|
||||||
|
Loading…
Reference in New Issue
Block a user