Skip to content

Commit

Permalink
Next MacOS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
topilski committed Mar 14, 2015
1 parent fe31085 commit 9552914
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/global/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ namespace fastoredis
}

std::string result;
const common::HashValue::const_iterator lastIt = std::prev(ar->end());
for(common::HashValue::const_iterator it = ar->begin(); it != ar->end(); ++it){
common::HashValue::value_type v = *it;
std::string key = (v.first)->toString();
Expand All @@ -366,7 +365,7 @@ namespace fastoredis
}

result += key + " " + val;
if(lastIt != it){
if(std::next(it) != ar->end()){
result += delemitr();
}
}
Expand Down

0 comments on commit 9552914

Please sign in to comment.