File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,10 @@ For most of the topics the compiler will provide suggestions.
127
127
adjusted within the type before the conversion. For example, you can convert
128
128
a ``bytes4 `` (4 bytes) to a ``uint64 `` (8 bytes) by first converting the
129
129
``bytes4 `` variable to ``bytes8 `` and then to ``uint64 ``. You get the
130
- opposite padding when converting through ``uint32 ``.
130
+ opposite padding when converting through ``uint32 ``. Before v0.5.0 any
131
+ conversion between ``bytesX `` and ``uintY `` would go through ``uint8X ``. For
132
+ example ``uint8(bytes3(0x291807)) `` would be converted to ``uint8(uint24(bytes3(0x291807))) ``
133
+ (the result is ``0x07 ``).
131
134
132
135
* Using ``msg.value `` in non-payable functions (or introducing it via a
133
136
modifier) is disallowed as a security feature. Turn the function into
You can’t perform that action at this time.
0 commit comments