SCI: Improved the Table template a bit by taking advantage of C++ features

svn-id: r40190
This commit is contained in:
Max Horn 2009-04-28 22:56:44 +00:00
parent d62b4c62c4
commit ed914d6740
8 changed files with 71 additions and 143 deletions

View file

@ -53,7 +53,7 @@ Node *lookup_node(EngineState *s, reg_t addr, const char *file, int line) {
return NULL;
}
return &(nt->table[addr.offset].entry);
return &(nt->table[addr.offset]);
}
List *lookup_list(EngineState *s, reg_t addr, const char *file, int line) {
@ -73,7 +73,7 @@ List *lookup_list(EngineState *s, reg_t addr, const char *file, int line) {
return NULL;
}
return &(lt->table[addr.offset].entry);
return &(lt->table[addr.offset]);
}
#ifdef DISABLE_VALIDATIONS