diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-09-04 12:22:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-04 12:22:03 +0800 |
commit | 1d8e133a30ea33b45519a3f52fc933fc917a9633 (patch) | |
tree | 843ccc0183ffadc6d5c24881ea8fd707ed1937a5 /packages/contracts/src/2.0.0/utils/LibBytes/LibBytes.sol | |
parent | 675964dc5c6c44eb07023fd036857ecd3f14dcf3 (diff) | |
parent | 99fbf384fdcae26eb608f9e0c95a852b7cb7bd99 (diff) | |
download | dexon-0x-contracts-1d8e133a30ea33b45519a3f52fc933fc917a9633.tar dexon-0x-contracts-1d8e133a30ea33b45519a3f52fc933fc917a9633.tar.gz dexon-0x-contracts-1d8e133a30ea33b45519a3f52fc933fc917a9633.tar.bz2 dexon-0x-contracts-1d8e133a30ea33b45519a3f52fc933fc917a9633.tar.lz dexon-0x-contracts-1d8e133a30ea33b45519a3f52fc933fc917a9633.tar.xz dexon-0x-contracts-1d8e133a30ea33b45519a3f52fc933fc917a9633.tar.zst dexon-0x-contracts-1d8e133a30ea33b45519a3f52fc933fc917a9633.zip |
Merge pull request #1051 from 0xProject/fix/contracts/style
Apply styling fixes to contracts
Diffstat (limited to 'packages/contracts/src/2.0.0/utils/LibBytes/LibBytes.sol')
-rw-r--r-- | packages/contracts/src/2.0.0/utils/LibBytes/LibBytes.sol | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/contracts/src/2.0.0/utils/LibBytes/LibBytes.sol b/packages/contracts/src/2.0.0/utils/LibBytes/LibBytes.sol index 93873cbcc..369f588ad 100644 --- a/packages/contracts/src/2.0.0/utils/LibBytes/LibBytes.sol +++ b/packages/contracts/src/2.0.0/utils/LibBytes/LibBytes.sol @@ -188,7 +188,8 @@ library LibBytes { memCopy( result.contentAddress(), b.contentAddress() + from, - result.length); + result.length + ); return result; } @@ -433,7 +434,8 @@ library LibBytes { pure returns (uint256 result) { - return uint256(readBytes32(b, index)); + result = uint256(readBytes32(b, index)); + return result; } /// @dev Writes a uint256 into a specific position in a byte array. |