summaryrefslogtreecommitdiff
path: root/wk5/pset/speller/dictionary.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r--wk5/pset/speller/dictionary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c
index 1e274f2..3b65191 100644
--- a/wk5/pset/speller/dictionary.c
+++ b/wk5/pset/speller/dictionary.c
@@ -53,7 +53,7 @@ unsigned int hash(const char *word)
// {
// val += (word[i] % 26);
// }
- return toupper(word[0]) % 26;
+ return (toupper(word[0]) % 26);
}
// Loads dictionary into memory, returning true if successful, else false