summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Taaki <genjix@riseup.net>2014-04-06 17:18:42 (GMT)
committer Amir Taaki <genjix@riseup.net>2014-04-06 17:18:42 (GMT)
commit70b146b1fcbd235cb9f3f897649c40e69fe2b887 (patch)
treece4f328be2b99f5f1a39e3c184a695f35001ebd3
parenta167047d3502d10686b0d2ea3016f36903823886 (diff)
switch to static_cast instead of c style cast.
-rw-r--r--src/utility/big_number.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utility/big_number.cpp b/src/utility/big_number.cpp
index e58ced9..d8d1f01 100644
--- a/src/utility/big_number.cpp
+++ b/src/utility/big_number.cpp
@@ -300,7 +300,7 @@ void big_number::set_uint64_impl(uint64_t value, bool is_negative)
*curr_byte = c;
++curr_byte;
}
- uint32_t size = (uint32_t)(curr_byte - (raw_mpi + 4));
+ uint32_t size = static_cast<uint32_t>(curr_byte - (raw_mpi + 4));
raw_mpi[0] = (size >> 24) & 0xff;
raw_mpi[1] = (size >> 16) & 0xff;
raw_mpi[2] = (size >> 8) & 0xff;