| # | Line 21 | Line 21 | static struct ohtab { | |
|---|---|---|
| 21 | OBJECT *htab; /* table, if allocated */ | |
| 22 | } modtab = {100, NULL}, objtab = {1000, NULL}; /* modifiers and objects */ | |
| 23 | ||
| 24 | < | static int otndx(); |
| 24 | > | static int otndx(char *, struct ohtab *); |
| 25 | ||
| 26 | ||
| 27 | OBJECT | |
| # | Line 158 | Line 158 | register struct ohtab *tab; | |
| 158 | hval = shash(name); | |
| 159 | tryagain: | |
| 160 | for (i = 0; i < tab->hsiz; i++) { | |
| 161 | < | ndx = (hval + i*i) % tab->hsiz; |
| 161 | > | ndx = (hval + (unsigned long)i*i) % tab->hsiz; |
| 162 | if (tab->htab[ndx] == OVOID || | |
| 163 | !strcmp(objptr(tab->htab[ndx])->oname, name)) | |
| 164 | return(ndx); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |