summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-03-20 21:09:10 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-03-20 21:09:10 +0000
commit323dc8764f745fe82e42ab224465f55801a49286 (patch)
tree0606fcfe1f24d4d12191e67302ce1af2c66786af /datatest.cpp
parentec56662ba7b4cfaf1335a88854127fac06f376aa (diff)
downloadcryptopp-323dc8764f745fe82e42ab224465f55801a49286.tar.gz
small fixes
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@44 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/datatest.cpp b/datatest.cpp
index 5d84c01..50b26fe 100644
--- a/datatest.cpp
+++ b/datatest.cpp
@@ -281,7 +281,7 @@ void TestDigestOrMAC(TestData &v, bool testDigest)
bool GetField(std::istream &is, std::string &name, std::string &value)
{
- name.clear();
+ name.resize(0); // GCC workaround: 2.95.3 doesn't have clear()
is >> name;
if (name.empty())
return false;
@@ -295,7 +295,7 @@ bool GetField(std::istream &is, std::string &name, std::string &value)
// VC60 workaround: getline bug
char buffer[128];
- value.clear();
+ value.resize(0); // GCC workaround: 2.95.3 doesn't have clear()
bool continueLine;
do