improved support for threads and code area allocation using malloc
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@965 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -588,8 +588,8 @@ InitReverseLookupOpcode(void)
|
||||
/* clear up table */
|
||||
{
|
||||
int j;
|
||||
for (j=0; j<=OP_HASH_SIZE; j++) {
|
||||
opeptr[j].opc = NIL;
|
||||
for (j=0; j<OP_HASH_SIZE; j++) {
|
||||
opeptr[j].opc = 0;
|
||||
opeptr[j].opnum = _Ystop;
|
||||
}
|
||||
}
|
||||
@@ -601,7 +601,7 @@ InitReverseLookupOpcode(void)
|
||||
OPCODE opc = Yap_opcode(i);
|
||||
int j = rtable_hash_op(opc,hash_size_mask);
|
||||
|
||||
while (opeptr[j].opc != NIL) {
|
||||
while (opeptr[j].opc) {
|
||||
if (++j > hash_size_mask)
|
||||
j = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user