diff options
author | Jack Lloyd <[email protected]> | 2017-10-19 12:43:15 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-19 12:43:15 -0400 |
commit | 9be977646f9373ff596e8fdd5ebd73f3281cde49 (patch) | |
tree | 4a78c6efd5572d6e5cf619935b5158d1c078e37d /src/lib | |
parent | 2e491b4ddbb63543d027a8a84a9fb523383ff3f0 (diff) |
Appease Sonar
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/stream/ctr/ctr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/stream/ctr/ctr.cpp b/src/lib/stream/ctr/ctr.cpp index b4c931980..d0b44589b 100644 --- a/src/lib/stream/ctr/ctr.cpp +++ b/src/lib/stream/ctr/ctr.cpp @@ -143,7 +143,7 @@ void CTR_BE::add_counter(const uint64_t counter) uint64_t b0 = load_be<uint64_t>(&m_counter[off], 0); uint64_t b1 = load_be<uint64_t>(&m_counter[off], 1); b1 += counter; - b1 += (b1 < counter); // carry + b1 += (b1 < counter) ? 1 : 0; // carry store_be(b0, &m_counter[off]); store_be(b1, &m_counter[off+8]); off += BS; |