Browse Source

Merge pull request #4602

6fd59ee script.h: set_vch() should shift a >32 bit value (Jeff Garzik)
tags/v0.15.1
Wladimir J. van der Laan 6 years ago
parent
commit
6278bd57c6
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/script.h

+ 1
- 1
src/script.h View File

@@ -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…
Cancel
Save