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 694d158..78e1a3f 100644
--- a/strciphr.cpp
+++ b/strciphr.cpp
@@ -16,7 +16,7 @@ byte AdditiveCipherTemplate<S>::GenerateByte()
m_leftOver = policy.GetBytesPerIteration();
}
- return KeystreamBufferEnd()[-m_leftOver--];
+ return *(KeystreamBufferEnd()-m_leftOver--);
}
template <class S>