aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-06-30 15:17:24 -0400
committerZachary Michaels <mikezackles@gmail.com>2014-07-01 14:57:26 -0400
commitb1413fd045a3ee79c05fac7595789e63396ec56e (patch)
tree30242bdb62637675334cece2a7fd2acddab24c0f /src/cryptonote_core
parentComment unused functions in cryptonote_core (diff)
downloadmonero-b1413fd045a3ee79c05fac7595789e63396ec56e.tar.xz
C++ style cast
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_format_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_format_utils.cpp b/src/cryptonote_core/cryptonote_format_utils.cpp
index 7b7f18844..c5691d8fe 100644
--- a/src/cryptonote_core/cryptonote_format_utils.cpp
+++ b/src/cryptonote_core/cryptonote_format_utils.cpp
@@ -595,7 +595,7 @@ namespace cryptonote
{
blobdata blob = t_serializable_object_to_blob(static_cast<block_header>(b));
crypto::hash tree_root_hash = get_tx_tree_hash(b);
- blob.append((const char*)&tree_root_hash, sizeof(tree_root_hash ));
+ blob.append(reinterpret_cast<const char*>(&tree_root_hash), sizeof(tree_root_hash));
blob.append(tools::get_varint_data(b.tx_hashes.size()+1));
return blob;
}