mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
script.h: set_vch() should shift a >32 bit value
Source: http://www.viva64.com/en/b/0268/
This commit is contained in:
parent
2920322871
commit
6fd59ee897
@ -166,7 +166,7 @@ private:
|
||||
// If the input vector's most significant byte is 0x80, remove it from
|
||||
// the result's msb and return a negative.
|
||||
if (vch.back() & 0x80)
|
||||
return -(result & ~(0x80 << (8 * (vch.size() - 1))));
|
||||
return -(result & ~(0x80ULL << (8 * (vch.size() - 1))));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user