mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tests/Docs after "stricter explicit conversion from Literals to Integers"
This commit is contained in:
@@ -211,7 +211,7 @@ library strings {
|
||||
}
|
||||
if (a != b) {
|
||||
// Mask out irrelevant bytes and check again
|
||||
uint256 mask = uint256(-1); // 0xffff...
|
||||
uint256 mask = type(uint256).max; // 0xffff...
|
||||
if(shortest < 32) {
|
||||
mask = ~(2 ** (8 * (32 - shortest + idx)) - 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user