(ef_ptr): Change return type to void *.
(ef_ptr): Use CANT_HAPPEN() to ensure EFF_MEM; check it before less serious index out of range failure.
This commit is contained in:
parent
5030d124a1
commit
f2e6d6b232
3 changed files with 7 additions and 8 deletions
|
@ -60,7 +60,7 @@ nxtitemp(struct nstr_item *np)
|
|||
} else {
|
||||
np->cur++;
|
||||
}
|
||||
gp = (struct genitem *)ef_ptr(np->type, np->cur);
|
||||
gp = ef_ptr(np->type, np->cur);
|
||||
if (gp == (struct genitem *)0)
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue