mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
minor tweak to find function in heapdump.cpp to return 0 where we were returning false (which amounts to the same thing but is less confusing)
This commit is contained in:
parent
dc2700d913
commit
e98da8440e
@ -133,7 +133,7 @@ hash(object p, unsigned capacity)
|
||||
Set::Entry*
|
||||
find(Context* c, object p)
|
||||
{
|
||||
if (c->objects == 0) return false;
|
||||
if (c->objects == 0) return 0;
|
||||
|
||||
for (int i = c->objects->index[hash(p, c->objects->capacity)]; i >= 0;) {
|
||||
Set::Entry* e = c->objects->entries + i;
|
||||
@ -143,7 +143,7 @@ find(Context* c, object p)
|
||||
i = e->next;
|
||||
}
|
||||
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Set::Entry*
|
||||
|
Loading…
Reference in New Issue
Block a user