aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bigint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bigint.h b/include/bigint.h
index 322c65dc4..e5ab880df 100644
--- a/include/bigint.h
+++ b/include/bigint.h
@@ -89,8 +89,8 @@ class BOTAN_DLL BigInt
void grow_reg(u32bit) const;
void grow_to(u32bit) const;
- word& operator[](u32bit);
- word operator[](u32bit) const;
+ word& operator[](u32bit i) { return rep[i]; }
+ word operator[](u32bit i) const { return rep[i]; }
void clear() { get_reg().clear(); }
void randomize(RandomNumberGenerator& rng, u32bit n);