worker_evaluator.hpp: Explicitly cast types in signed subtraction

This commit is contained in:
theoreticalbts 2015-08-17 14:11:39 -04:00
parent 29b7f343a6
commit a888c81ac4

View file

@ -128,7 +128,7 @@ namespace graphene { namespace chain {
return now >= work_begin_date && now <= work_end_date;
}
share_type approving_stake(const vector<uint64_t>& stake_vote_tallies)const {
return total_votes_for - total_votes_against;// stake_vote_tallies[vote_for] - stake_vote_tallies[vote_against];
return int64_t( total_votes_for ) - int64_t( total_votes_against );// stake_vote_tallies[vote_for] - stake_vote_tallies[vote_against];
}
};