Skip to content

Commit

Permalink
Update contracts/utils/Strings.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx authored Aug 29, 2024
1 parent efd2f30 commit bc42b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/utils/Strings.sol
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ library Strings {
int256 result = 0;
for (uint256 i = offset; i < buffer.length; ++i) {
result *= 10; // will revert if overflow
result += factor * int8(_parseChr(buffer[i], 10)); // parseChr is at most 35, it fits into an int8
result += factor * int8(_parseChr(buffer[i], 10)); // parseChr is at most 9, it fits into an int8
}
return result;
}
Expand Down

0 comments on commit bc42b25

Please sign in to comment.