diff options
author | lloyd <[email protected]> | 2008-09-07 18:00:20 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-07 18:00:20 +0000 |
commit | 555c07fad06d84402f756b1a602b05b062c55dba (patch) | |
tree | 849dab15501da617ecdfc45d7d5a4e1959729abd /include | |
parent | dc9482652ea5f58abb0666b0d830c9344c1a2cea (diff) |
Inline BigInt::operator[]
Diffstat (limited to 'include')
-rw-r--r-- | include/bigint.h | 4 |
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); |