aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream
diff options
context:
space:
mode:
authorDan Brown <dbrown@bruxton.com>2016-04-27 15:21:26 -0700
committerDan Brown <dbrown@bruxton.com>2016-04-27 15:21:26 -0700
commita0a2b66b3b6ba9dd94f924ef9639570f4a4ae2b6 (patch)
treec4fdfd8e588a2550a0d2b6f5c41d1cdffffcacc6 /src/lib/stream
parentb55e9bca0c747154aeeb188df9a8a6eda6d65124 (diff)
Add explicit static_cast operations to eliminate implicit cast compiler warnings.
Diffstat (limited to 'src/lib/stream')
-rw-r--r--src/lib/stream/ctr/ctr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/stream/ctr/ctr.cpp b/src/lib/stream/ctr/ctr.cpp
index e90bb43a4..88c7a8d8e 100644
--- a/src/lib/stream/ctr/ctr.cpp
+++ b/src/lib/stream/ctr/ctr.cpp
@@ -98,7 +98,7 @@ void CTR_BE::increment_counter()
for(size_t i = 0; i != n_wide; ++i)
{
- uint16_t carry = n_wide;
+ uint16_t carry = static_cast<uint16_t>(n_wide);
for(size_t j = 0; carry && j != bs; ++j)
{
const size_t off = i*bs + (bs-1-j);