aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-07 18:00:20 +0000
committerlloyd <[email protected]>2008-09-07 18:00:20 +0000
commit555c07fad06d84402f756b1a602b05b062c55dba (patch)
tree849dab15501da617ecdfc45d7d5a4e1959729abd /include
parentdc9482652ea5f58abb0666b0d830c9344c1a2cea (diff)
Inline BigInt::operator[]
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);