fix qsave_module

This commit is contained in:
Vítor Santos Costa 2014-09-25 09:47:38 +01:00
parent 52cf634e33
commit e4306ba28e
2 changed files with 1 additions and 2 deletions

View File

@ -193,7 +193,7 @@ InsertPredEntry(PredEntry *op, PredEntry *pe)
import_pred_entry_hash_entry_t *p;
if (LOCAL_ImportPredEntryHashTableSize == 0)
return NULL;
return;
hash = (CELL)(op) % LOCAL_ImportPredEntryHashTableSize;
p = LOCAL_ImportPredEntryHashChain[hash];
while (p) {

View File

@ -922,7 +922,6 @@ p_save_module_preds( USES_REGS1 )
Yap_Error(TYPE_ERROR_ATOM,tmod,"save_module/2");
return FALSE;
}
save_header( stream );
return save_module(stream, tmod) != 0;
}