diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-25 15:25:30 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-25 15:25:32 +0200 |
commit | f66f986a25e1949d78a3b4991434465bc9d7eba3 (patch) | |
tree | 8d1107667889fb581280045b7da1c64618798246 /src/script/script.h | |
parent | b50e5fe099b3e9d8ece46b239ce930750df2120e (diff) | |
parent | 1e7350486582fafc651d07a43d209d30eaaef1d7 (diff) |
Merge pull request #4823
1e73504 Fixing C4146 warning (ENikS)
Diffstat (limited to 'src/script/script.h')
-rw-r--r-- | src/script/script.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script.h b/src/script/script.h index 4c9ac74b78..4aea439e01 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -304,7 +304,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 & ~(0x80ULL << (8 * (vch.size() - 1)))); + return -((int64_t)(result & ~(0x80ULL << (8 * (vch.size() - 1))))); return result; } |