Magic-number elimination.
This commit is contained in:
parent
062840db69
commit
9714bf8c82
3 changed files with 14 additions and 11 deletions
1
misc.c
1
misc.c
|
@ -526,6 +526,7 @@ long get_vocab_id(const char* word)
|
|||
{
|
||||
long ref_num;
|
||||
|
||||
/* FIXME: Magic numbers related to vocabulary */
|
||||
ref_num = get_motion_vocab_id(word);
|
||||
if (ref_num != WORD_NOT_FOUND)
|
||||
return (ref_num + 0); // FIXME: replace with a proper hash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue