diff options
author | lloyd <[email protected]> | 2006-05-29 19:27:00 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-05-29 19:27:00 +0000 |
commit | 244f85eb1d225839403b0e98ccd2dc9a6e94d34f (patch) | |
tree | 292c14d3011af59073052848cbdfaa83f12c492b | |
parent | e788f117bc34b86237586aeb3abb53c116c24be4 (diff) |
Change some calls to vector.at() to use operator[] for GCC 2.95.x
compatability.
-rw-r--r-- | src/datastor.cpp | 2 | ||||
-rw-r--r-- | src/powm_fw.cpp | 2 | ||||
-rw-r--r-- | src/powm_mnt.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/datastor.cpp b/src/datastor.cpp index 69afd3ce2..c62edcb0a 100644 --- a/src/datastor.cpp +++ b/src/datastor.cpp @@ -88,7 +88,7 @@ std::string Data_Store::get1(const std::string& key) const if(vals.size() > 1) throw Invalid_State("Data_Store::get1: More than one value for " + key); - return vals.at(0); + return vals[0]; } /************************************************* diff --git a/src/powm_fw.cpp b/src/powm_fw.cpp index 16f9c6623..577f4968d 100644 --- a/src/powm_fw.cpp +++ b/src/powm_fw.cpp @@ -83,7 +83,7 @@ BigInt Fixed_Window_Exponentiator::execute() const u32bit nibble = exp.get_substring(window_bits*(j-1), window_bits); if(nibble) - x = reducer.multiply(x, g.at(nibble-1)); + x = reducer.multiply(x, g[nibble-1]); } return x; } diff --git a/src/powm_mnt.cpp b/src/powm_mnt.cpp index c90cb7e20..ad1ac312c 100644 --- a/src/powm_mnt.cpp +++ b/src/powm_mnt.cpp @@ -122,7 +122,7 @@ BigInt Montgomery_Exponentiator::execute() const u32bit nibble = exp.get_substring(window_bits*(j-1), window_bits); if(nibble) { - const BigInt& y = g.at(nibble-1); + const BigInt& y = g[nibble-1]; z.clear(); bigint_mul(z.begin(), z.size(), workspace, |