From e943fc67962b6e4dc2c7c64707dc2cf062728520 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 7 Feb 2012 19:50:28 +0000 Subject: Fixes for GCC 4.7.0 (r183974) --- src/math/bigint/big_code.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/math/bigint/big_code.cpp') diff --git a/src/math/bigint/big_code.cpp b/src/math/bigint/big_code.cpp index 75a310a7c..28614c9f1 100644 --- a/src/math/bigint/big_code.cpp +++ b/src/math/bigint/big_code.cpp @@ -111,7 +111,9 @@ BigInt BigInt::decode(const byte buf[], size_t length, Base base) if(length % 2) { // Handle lack of leading 0 - const char buf0_with_leading_0[2] = { '0', buf[0] }; + const char buf0_with_leading_0[2] = + { '0', static_cast(buf[0]) }; + binary = hex_decode(buf0_with_leading_0, 2); binary += hex_decode(reinterpret_cast(&buf[1]), -- cgit v1.2.3