From 3ad077ad8277a51c7049aa78eacc8a45688172f8 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 20 Aug 2018 14:08:27 -0400 Subject: Clear conversion wanrings under MSVC --- modes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modes.cpp') diff --git a/modes.cpp b/modes.cpp index 9ff761ca..3a1e1feb 100644 --- a/modes.cpp +++ b/modes.cpp @@ -125,7 +125,7 @@ void CTR_ModePolicy::SeekToIteration(lword iterationCount) int carry=0; for (int i=BlockSize()-1; i>=0; i--) { - unsigned int sum = m_register[i] + (iterationCount & 0xff) + carry; + unsigned int sum = (unsigned int)m_register[i] + (iterationCount & 0xff) + carry; m_counterArray[i] = byte(sum & 0xff); carry = sum >> 8; iterationCount >>= 8; -- cgit v1.2.1