aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-07-29 11:24:26 -0400
committerJeff Garzik <jgarzik@bitpay.com>2014-07-29 11:24:26 -0400
commit6fd59ee897e9dc9b021440cbb738186dbf3a3e98 (patch)
treecb08e2dbc81797977323ab9f2391881bb1b7f56b /src
parent29203228710de3e180914c1d66f48dd7e41270a0 (diff)
downloadbitcoin-6fd59ee897e9dc9b021440cbb738186dbf3a3e98.tar.xz
script.h: set_vch() should shift a >32 bit value
Source: http://www.viva64.com/en/b/0268/
Diffstat (limited to 'src')
-rw-r--r--src/script.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.h b/src/script.h
index e36be2db9e..c74ae37598 100644
--- a/src/script.h
+++ b/src/script.h
@@ -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;
}