summaryrefslogtreecommitdiff
path: root/strciphr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'strciphr.cpp')
-rw-r--r--strciphr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/strciphr.cpp b/strciphr.cpp
index 78e1a3f0..d948c579 100644
--- a/strciphr.cpp
+++ b/strciphr.cpp
@@ -99,7 +99,7 @@ void AdditiveCipherTemplate<BASE>::Seek(dword position)
if (position > 0)
{
policy.WriteKeystream(m_buffer, 1);
- m_leftOver = bytesPerIteration - position;
+ m_leftOver = bytesPerIteration - (unsigned int)position;
}
else
m_leftOver = 0;