SCI: Improved the Table template a bit by taking advantage of C++ features
svn-id: r40190
This commit is contained in:
parent
d62b4c62c4
commit
ed914d6740
8 changed files with 71 additions and 143 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue