mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
don't assume sizeof(bool) == 8
This commit is contained in:
parent
e1395f300a
commit
8b0f7d790f
@ -4327,8 +4327,9 @@ compile(MyThread* t, Allocator* allocator, Context* context)
|
|||||||
PROTECT(t, eht);
|
PROTECT(t, eht);
|
||||||
|
|
||||||
unsigned visitCount = exceptionHandlerTableLength(t, eht);
|
unsigned visitCount = exceptionHandlerTableLength(t, eht);
|
||||||
|
|
||||||
bool visited[visitCount];
|
bool visited[visitCount];
|
||||||
memset(visited, 0, visitCount);
|
memset(visited, 0, visitCount * sizeof(bool));
|
||||||
|
|
||||||
while (visitCount) {
|
while (visitCount) {
|
||||||
bool progress = false;
|
bool progress = false;
|
||||||
@ -4339,7 +4340,7 @@ compile(MyThread* t, Allocator* allocator, Context* context)
|
|||||||
ExceptionHandler* eh = exceptionHandlerTableBody(t, eht, i);
|
ExceptionHandler* eh = exceptionHandlerTableBody(t, eht, i);
|
||||||
unsigned start = exceptionHandlerStart(eh);
|
unsigned start = exceptionHandlerStart(eh);
|
||||||
|
|
||||||
if (not visited[i] and context->visitTable[start]) {
|
if ((not visited[i]) and context->visitTable[start]) {
|
||||||
-- visitCount;
|
-- visitCount;
|
||||||
visited[i] = true;
|
visited[i] = true;
|
||||||
progress = true;
|
progress = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user