From e4ed8f070518c97049ca8f085fc1c7766fea59d4 Mon Sep 17 00:00:00 2001 From: Doug Crescenzi Date: Wed, 13 Jun 2018 14:54:54 -0400 Subject: [PATCH] Added explicit integer sizes to uint variables in StandardToken (#1004) --- contracts/token/ERC20/StandardToken.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/token/ERC20/StandardToken.sol b/contracts/token/ERC20/StandardToken.sol index efca87d18..5c21deaa8 100644 --- a/contracts/token/ERC20/StandardToken.sol +++ b/contracts/token/ERC20/StandardToken.sol @@ -86,7 +86,7 @@ contract StandardToken is ERC20, BasicToken { */ function increaseApproval( address _spender, - uint _addedValue + uint256 _addedValue ) public returns (bool) @@ -109,12 +109,12 @@ contract StandardToken is ERC20, BasicToken { */ function decreaseApproval( address _spender, - uint _subtractedValue + uint256 _subtractedValue ) public returns (bool) { - uint oldValue = allowed[msg.sender][_spender]; + uint256 oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else {