From 1e7350486582fafc651d07a43d209d30eaaef1d7 Mon Sep 17 00:00:00 2001 From: ENikS Date: Tue, 2 Sep 2014 17:36:45 -0400 Subject: Fixing C4146 warning Rebased-By: Wladimir J. van der Laan --- src/script/script.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/script.h') diff --git a/src/script/script.h b/src/script/script.h index 4c9ac74b7..4aea439e0 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; } -- cgit v1.2.3