diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-06 04:19:06 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-07-07 02:53:59 +0800 |
commit | d634775d4018499fb0d590010c7d07dfd9047fd1 (patch) | |
tree | c8e4adde908c2ee7b2d3035d0184ae424f520bca /packages/contracts | |
parent | c4ab5bc65333204e7cf712e3330406120f163268 (diff) | |
download | dexon-0x-contracts-d634775d4018499fb0d590010c7d07dfd9047fd1.tar dexon-0x-contracts-d634775d4018499fb0d590010c7d07dfd9047fd1.tar.gz dexon-0x-contracts-d634775d4018499fb0d590010c7d07dfd9047fd1.tar.bz2 dexon-0x-contracts-d634775d4018499fb0d590010c7d07dfd9047fd1.tar.lz dexon-0x-contracts-d634775d4018499fb0d590010c7d07dfd9047fd1.tar.xz dexon-0x-contracts-d634775d4018499fb0d590010c7d07dfd9047fd1.tar.zst dexon-0x-contracts-d634775d4018499fb0d590010c7d07dfd9047fd1.zip |
Change uint => uint256
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/src/2.0.0/utils/SafeMath/SafeMath.sol | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/packages/contracts/src/2.0.0/utils/SafeMath/SafeMath.sol b/packages/contracts/src/2.0.0/utils/SafeMath/SafeMath.sol index 8cbb8e526..4413244db 100644 --- a/packages/contracts/src/2.0.0/utils/SafeMath/SafeMath.sol +++ b/packages/contracts/src/2.0.0/utils/SafeMath/SafeMath.sol @@ -1,28 +1,27 @@ pragma solidity 0.4.24; -pragma experimental ABIEncoderV2; contract SafeMath { - function safeMul(uint a, uint b) + function safeMul(uint256 a, uint256 b) internal pure returns (uint256) { - uint c = a * b; + uint256 c = a * b; assert(a == 0 || c / a == b); return c; } - function safeDiv(uint a, uint b) + function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) { - uint c = a / b; + uint256 c = a / b; return c; } - function safeSub(uint a, uint b) + function safeSub(uint256 a, uint256 b) internal pure returns (uint256) @@ -31,12 +30,12 @@ contract SafeMath { return a - b; } - function safeAdd(uint a, uint b) + function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) { - uint c = a + b; + uint256 c = a + b; assert(c >= a); return c; } |