Skip to content

Commit

Permalink
Fix broken build (invalid use of qualified name std::advance)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinandresen committed May 9, 2011
1 parent 6244e44 commit c0430f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,8 @@ Value listtransactions(const Array& params, bool fHelp)
}

// Now: iterate backwards until we have nCount items to return:
for (TxItems::reverse_iterator it = txByTime.rbegin(), std::advance(it, nFrom); it != txByTime.rend(); ++it)
TxItems::reverse_iterator it = txByTime.rbegin();
for (std::advance(it, nFrom); it != txByTime.rend(); ++it)
{
CWalletTx *const pwtx = (*it).second.first;
if (pwtx != 0)
Expand Down

0 comments on commit c0430f4

Please sign in to comment.