diff --git a/src/strings.sol b/src/strings.sol index f7ae13a8..c801990e 100644 --- a/src/strings.sol +++ b/src/strings.sol @@ -42,9 +42,9 @@ library strings { uint _ptr; } - function memcpy(uint dest, uint src, uint len) private pure { + function memcpy(uint dest, uint src, uint length) private pure { // Copy word-length chunks while possible - for(; len >= 32; len -= 32) { + for(; length >= 32; length -= 32) { assembly { mstore(dest, mload(src)) } @@ -54,8 +54,8 @@ library strings { // Copy remaining bytes uint mask = type(uint).max; - if (len > 0) { - mask = 256 ** (32 - len) - 1; + if (length > 0) { + mask = 256 ** (32 - length) - 1; } assembly { let srcpart := and(mload(src), not(mask))