aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/bigint/big_code.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-02-07 19:50:28 +0000
committerlloyd <[email protected]>2012-02-07 19:50:28 +0000
commite943fc67962b6e4dc2c7c64707dc2cf062728520 (patch)
tree2f8cf3141f186c748f02d079fc18d71c37448f03 /src/math/bigint/big_code.cpp
parent8809043895d1d4cf37ff476cb69c9277b33cc957 (diff)
Fixes for GCC 4.7.0 (r183974)
Diffstat (limited to 'src/math/bigint/big_code.cpp')
-rw-r--r--src/math/bigint/big_code.cpp4
1 files changed, 3 insertions, 1 deletions
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<char>(buf[0]) };
+
binary = hex_decode(buf0_with_leading_0, 2);
binary += hex_decode(reinterpret_cast<const char*>(&buf[1]),