1
0
Fork 0
forked from lthn/blockchain

compilation fix for macOS

This commit is contained in:
sowle 2019-01-11 07:21:38 +03:00
parent 98a8608046
commit d3a0ec0f92

View file

@ -254,10 +254,10 @@ namespace bc_services
}
//now cut what not needed
auto it = std::next(offers.begin(), std::min(filter.offset, offers.size()));
auto it = std::next(offers.begin(), std::min(filter.offset, static_cast<uint64_t>(offers.size())));
offers.erase(offers.begin(), it);
// cut limit
it = std::next(offers.begin(), std::min(filter.limit, offers.size()));
it = std::next(offers.begin(), std::min(filter.limit, static_cast<uint64_t>(offers.size())));
offers.erase(it, offers.end());
return true;