aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/bigint/bigint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/bigint/bigint.h')
-rw-r--r--src/math/bigint/bigint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/bigint/bigint.h b/src/math/bigint/bigint.h
index 3fee70899..0fd9b05cb 100644
--- a/src/math/bigint/bigint.h
+++ b/src/math/bigint/bigint.h
@@ -135,7 +135,7 @@ class BOTAN_DLL BigInt
* @param i a word index
* @return the word at index i
*/
- word operator[](size_t i) const { return reg[i]; }
+ const word& operator[](size_t i) const { return reg[i]; }
/**
* Zeroize the BigInt