Added explicit integer sizes to uint variables in StandardToken (#1004)

This commit is contained in:
Doug Crescenzi
2018-06-13 14:54:54 -04:00
committed by Matt Condon
parent 5daaf60d11
commit e4ed8f0705

View File

@ -86,7 +86,7 @@ contract StandardToken is ERC20, BasicToken {
*/ */
function increaseApproval( function increaseApproval(
address _spender, address _spender,
uint _addedValue uint256 _addedValue
) )
public public
returns (bool) returns (bool)
@ -109,12 +109,12 @@ contract StandardToken is ERC20, BasicToken {
*/ */
function decreaseApproval( function decreaseApproval(
address _spender, address _spender,
uint _subtractedValue uint256 _subtractedValue
) )
public public
returns (bool) returns (bool)
{ {
uint oldValue = allowed[msg.sender][_spender]; uint256 oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) { if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0; allowed[msg.sender][_spender] = 0;
} else { } else {