mirror of
https://github.com/corda/corda.git
synced 2025-02-02 09:18:13 +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*
|
Set::Entry*
|
||||||
find(Context* c, object p)
|
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;) {
|
for (int i = c->objects->index[hash(p, c->objects->capacity)]; i >= 0;) {
|
||||||
Set::Entry* e = c->objects->entries + i;
|
Set::Entry* e = c->objects->entries + i;
|
||||||
@ -143,7 +143,7 @@ find(Context* c, object p)
|
|||||||
i = e->next;
|
i = e->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Set::Entry*
|
Set::Entry*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user