bunch of changes
This commit is contained in:
@@ -244,17 +244,17 @@ uint32_t arith_uint256::GetCompact(bool fNegative) const
|
||||
return nCompact;
|
||||
}
|
||||
|
||||
uint256 ArithToUint256(const arith_uint256 &a)
|
||||
uint256 ArithToUint256(const arith_uint256& a)
|
||||
{
|
||||
uint256 b;
|
||||
for(int x=0; x<a.WIDTH; ++x)
|
||||
WriteLE32(b.begin() + x*4, a.pn[x]);
|
||||
for (int x = 0; x < a.WIDTH; ++x)
|
||||
WriteLE32(b.begin() + x * 4, a.pn[x]);
|
||||
return b;
|
||||
}
|
||||
arith_uint256 UintToArith256(const uint256 &a)
|
||||
arith_uint256 UintToArith256(const uint256& a)
|
||||
{
|
||||
arith_uint256 b;
|
||||
for(int x=0; x<b.WIDTH; ++x)
|
||||
b.pn[x] = ReadLE32(a.begin() + x*4);
|
||||
for (int x = 0; x < b.WIDTH; ++x)
|
||||
b.pn[x] = ReadLE32(a.begin() + x * 4);
|
||||
return b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user