Fix signed unsigned compare warning

This commit is contained in:
Anthony J. Thibault 2018-06-28 15:29:01 -07:00
parent 9772fc4e22
commit 17f9a01fa2

View file

@ -46,7 +46,7 @@ void Space::processResets(const Transaction::Resets& transactions) {
auto proxyID = std::get<0>(reset);
// Guard against proxyID being past the end of the list.
if (proxyID >= _proxies.size() || proxyID >= _owners.size()) {
if (proxyID < 0 || proxyID >= (int32_t)_proxies.size() || proxyID >= (int32_t)_owners.size()) {
continue;
}
auto& item = _proxies[proxyID];