Unverified Commit 051d3401 by Alex Beregszaszi Committed by GitHub

Use bytes1 and avoid using the obsolete byte type (#2438)

parent 0a4233f0
......@@ -26,7 +26,7 @@ library Strings {
uint256 index = digits - 1;
temp = value;
while (temp != 0) {
buffer[index--] = byte(uint8(48 + temp % 10));
buffer[index--] = bytes1(uint8(48 + temp % 10));
temp /= 10;
}
return string(buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment