Tests/Docs after "stricter explicit conversion from Literals to Integers"

This commit is contained in:
hrkrshnn
2020-11-03 14:31:44 +01:00
parent a555556559
commit 29e23efc93
27 changed files with 90 additions and 76 deletions
@@ -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);
}