Permalink
Browse files

Fix ticket #148 (unable to compile with g++-3.3)

  • Loading branch information...
1 parent 8e32753 commit de1a786a07d3c84064227cad437d6a2e210d9a3b @aggro80 aggro80 committed Mar 8, 2009
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/errorlogger.cpp
View
@@ -67,7 +67,10 @@ bool ErrorLogger::ErrorMessage::deserialize(const std::string &data)
iss.get();
std::string temp;
for (unsigned int i = 0; i < len && iss.good(); ++i)
- temp.append(1, iss.get());
+ {
+ char c = iss.get();
+ temp.append(1, c);
+ }
results.push_back(temp);
if (results.size() == 3)
@@ -91,7 +94,10 @@ bool ErrorLogger::ErrorMessage::deserialize(const std::string &data)
iss.get();
std::string temp;
for (unsigned int i = 0; i < len && iss.good(); ++i)
- temp.append(1, iss.get());
+ {
+ char c = iss.get();
+ temp.append(1, c);
+ }
ErrorLogger::ErrorMessage::FileLocation loc;
loc.file = temp.substr(temp.find(':') + 1);

0 comments on commit de1a786

Please sign in to comment.