diff options
author | lloyd <[email protected]> | 2006-09-08 22:52:29 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-08 22:52:29 +0000 |
commit | 2d78c024c94d43bc7395325c601eae93acad99e6 (patch) | |
tree | 33fb4d7d8d2e2162d58ef4c2913bca62ef396078 /src/big_base.cpp | |
parent | 85e5003e112c63d78d984eb8c7c3e915505f4f58 (diff) |
Add a couple of static_casts to make it clear where a type conversion is
being performed.
Undefined the prototype creating macro in x509stat.cpp after use.
Avoid a possible type conversion in bigint_divop by storing high's top
bit in a word instead of a bool.
Diffstat (limited to 'src/big_base.cpp')
-rw-r--r-- | src/big_base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/big_base.cpp b/src/big_base.cpp index 595a9f3ae..3ecf71db8 100644 --- a/src/big_base.cpp +++ b/src/big_base.cpp @@ -182,7 +182,7 @@ u32bit BigInt::get_substring(u32bit offset, u32bit length) const u64bit mask = (1 << length) - 1; u32bit shift = (offset % 8); - return ((piece >> shift) & mask); + return static_cast<u32bit>((piece >> shift) & mask); } /************************************************* |