summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-11-30 19:15:37 -0600
committerJohn Wiegley <johnw@newartisans.com>2011-11-30 19:15:37 -0600
commitdedf04aa43802155f0874d34047ffaa6aa05672b (patch)
tree2e18e4cb84155a95eedf72e1446c9085aed7d7db /lib
parentf7ceef0a6d3704c35fbb8395cc708380f89eef07 (diff)
downloadfork-ledger-dedf04aa43802155f0874d34047ffaa6aa05672b.tar.gz
fork-ledger-dedf04aa43802155f0874d34047ffaa6aa05672b.tar.bz2
fork-ledger-dedf04aa43802155f0874d34047ffaa6aa05672b.zip
Fixed two casts that are errors with gcc 4.7
Diffstat (limited to 'lib')
-rw-r--r--lib/sha1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sha1.cpp b/lib/sha1.cpp
index 0975287f..5610cd44 100644
--- a/lib/sha1.cpp
+++ b/lib/sha1.cpp
@@ -233,7 +233,7 @@ void SHA1::Input( const unsigned char *message_array,
void SHA1::Input( const char *message_array,
unsigned length)
{
- Input((unsigned char *) message_array, length);
+ Input(reinterpret_cast<unsigned char *>(const_cast<char *>(message_array)), length);
}
/*
@@ -359,7 +359,7 @@ SHA1& SHA1::operator<<(const unsigned char *message_array)
*/
SHA1& SHA1::operator<<(const char message_element)
{
- Input((unsigned char *) &message_element, 1);
+ Input(reinterpret_cast<unsigned char *>(const_cast<char *>(&message_element)), 1);
return *this;
}