From 9cdd35fc2c379611f03622dd82e03d4455f129c6 Mon Sep 17 00:00:00 2001 From: perissology Date: Tue, 24 Oct 2017 10:31:18 -0700 Subject: [PATCH] don't need to use bit manipulation in mNormalizePledge --- contracts/LiquidPledging.sol | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contracts/LiquidPledging.sol b/contracts/LiquidPledging.sol index d6a2135..9269897 100644 --- a/contracts/LiquidPledging.sol +++ b/contracts/LiquidPledging.sol @@ -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] ); } }