File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -281,15 +281,15 @@ class CBigNum
281
281
{
282
282
unsigned int nSize = BN_bn2mpi (bn, NULL );
283
283
if (nSize < 4 )
284
- return 0 ;
284
+ return uint256 ( 0 ) ;
285
285
if (bitSize () > 256 ) {
286
286
return MaxUint256 ();
287
287
}
288
288
std::vector<unsigned char > vch (nSize);
289
289
BN_bn2mpi (bn, &vch[0 ]);
290
290
if (vch.size () > 4 )
291
291
vch[4 ] &= 0x7f ;
292
- uint256 n = 0 ;
292
+ uint256 n ( 0 ) ;
293
293
for (unsigned int i = 0 , j = vch.size ()-1 ; i < sizeof (n) && j >= 4 ; i++, j--)
294
294
((unsigned char *)&n)[i] = vch[j];
295
295
return n;
@@ -298,7 +298,7 @@ class CBigNum
298
298
arith_uint256 getarith_uint256 () const
299
299
{
300
300
auto n = getuint256 ();
301
- return Uint256ToArith (n);
301
+ return UintToArith256 (n);
302
302
}
303
303
304
304
void setvch (const std::vector<unsigned char >& vch)
You can’t perform that action at this time.
0 commit comments