diff options
Diffstat (limited to 'src')
-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 21e62fb4b..c63bdebdc 100644 --- a/src/lib/stream/ctr/ctr.cpp +++ b/src/lib/stream/ctr/ctr.cpp @@ -148,7 +148,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) ? 1 : 0; // carry + b0 += (b1 < counter) ? 1 : 0; // carry store_be(b0, &m_counter[off]); store_be(b1, &m_counter[off+8]); off += BS; |