aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/mul128.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-11-16 14:52:25 +0000
committerlloyd <[email protected]>2013-11-16 14:52:25 +0000
commite23193c46074dc28e500a944103abb08ec725723 (patch)
treece47b479b1ec39cf9619c4dd92d0ad39340dffd7 /src/utils/mul128.h
parentcac58ad976fffdab5d78a4c835c0e3cbd9e33ae8 (diff)
Enable all the GCC warning flags, as we now require at least GCC 4.7 anyway
Fix a few nullptr and cast warnings.
Diffstat (limited to 'src/utils/mul128.h')
-rw-r--r--src/utils/mul128.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/mul128.h b/src/utils/mul128.h
index 7927e5d08..6725021ba 100644
--- a/src/utils/mul128.h
+++ b/src/utils/mul128.h
@@ -27,7 +27,7 @@ namespace Botan {
#define BOTAN_FAST_64X64_MUL(a,b,lo,hi) \
do { \
- const uint128_t r = (uint128_t)a * b; \
+ const uint128_t r = static_cast<uint128_t>(a) * b; \
*hi = (r >> 64) & 0xFFFFFFFFFFFFFFFF; \
*lo = (r ) & 0xFFFFFFFFFFFFFFFF; \
} while(0)