From 555c07fad06d84402f756b1a602b05b062c55dba Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 7 Sep 2008 18:00:20 +0000 Subject: Inline BigInt::operator[] --- include/bigint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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); -- cgit v1.2.3