Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Update asset.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
larryk85 authored Aug 7, 2018
1 parent bfe9334 commit 8781da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/eosiolib/asset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ namespace eosio {
* @post The amount of this asset is multiplied by a
*/
asset& operator*=( int64_t a ) {
uint128_t tmp = (uint128_t)amount * (uint128_t)a;
int128_t tmp = (int128_t)amount * (int128_t)a;
eosio_assert( tmp <= max_amount, "multiplication overflow" );
eosio_assert( tmp >= -max_amount, "multiplication underflow" );
amount = (int64_t)tmp;
Expand Down

0 comments on commit 8781da2

Please sign in to comment.