aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/algo_base
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-05-15 02:06:35 +0000
committerlloyd <[email protected]>2014-05-15 02:06:35 +0000
commit318b0e20fa1edd2dc700a01e47d31ebb8c219460 (patch)
treefa0c7b8728cd96a1f12b33b02c02d60ca61cc14e /src/lib/algo_base
parent6472e22b40c1a48847820b856cd8a2e25c981b95 (diff)
Visual C++'s iterator debugging gets cranky with &vec[vec.size()].
Github #21
Diffstat (limited to 'src/lib/algo_base')
-rw-r--r--src/lib/algo_base/symkey.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/algo_base/symkey.h b/src/lib/algo_base/symkey.h
index b47da8a69..a93f456bb 100644
--- a/src/lib/algo_base/symkey.h
+++ b/src/lib/algo_base/symkey.h
@@ -37,7 +37,7 @@ class BOTAN_DLL OctetString
/**
* @return end of this string
*/
- const byte* end() const { return &bits[bits.size()]; }
+ const byte* end() const { return begin() + bits.size(); }
/**
* @return this encoded as hex