From 6fd59ee897e9dc9b021440cbb738186dbf3a3e98 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Tue, 29 Jul 2014 11:24:26 -0400 Subject: [PATCH] script.h: set_vch() should shift a >32 bit value Source: http://www.viva64.com/en/b/0268/ --- src/script.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script.h b/src/script.h index e36be2db9..c74ae3759 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; }