Mercurial > hg > CbC > old > akasha
diff src/insert_verification/akashaLLRBContext.c @ 40:56ea709e7af3
Fix SEGV
author | atton |
---|---|
date | Thu, 16 Jun 2016 07:19:50 +0000 |
parents | 593ab851ad76 |
children |
line wrap: on
line diff
--- a/src/insert_verification/akashaLLRBContext.c Mon Jun 13 16:30:30 2016 +0900 +++ b/src/insert_verification/akashaLLRBContext.c Thu Jun 16 07:19:50 2016 +0000 @@ -58,7 +58,7 @@ __code initIteratorElem(struct Context* context, struct Allocate* allocate, struct IterElem* prev); __code initLLRBContext(struct Context* context, enum Code next) { - context->codeNum = Exit; + context->codeNum = CodeTerminal; context->heapLimit = sizeof(union Data)*ALLOCATE_SIZE; context->code = malloc(sizeof(__code*)*context->codeNum); @@ -110,7 +110,7 @@ context->data[AkashaInfo] = context->heap; context->heap += sizeof(struct AkashaInfo); - context->dataNum = AkashaInfo; + context->dataNum = UniqueDataTerminal; struct Tree* tree = &context->data[Tree]->tree; tree->root = 0;