Merge pull request #37 from Giveth/bit_manipulation

don't need to use bit manipulation in mNormalizePledge
This commit is contained in:
Jordi Baylina 2017-11-01 04:31:48 -05:00 committed by GitHub
commit 5b53c5f4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -283,11 +283,9 @@ function donate(uint64 idGiver, uint64 idReceiver) payable {
}
}
function mNormalizePledge(uint[] pledges) returns(uint64) {
function mNormalizePledge(uint64[] pledges) {
for (uint i = 0; i < pledges.length; i++ ) {
uint64 idPledge = uint64( pledges[i] & (D64-1) );
normalizePledge(idPledge);
normalizePledge( pledges[i] );
}
}