summaryrefslogtreecommitdiff
path: root/wk5/pset/speller/dictionary.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-29 03:19:18 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-29 03:19:18 +0000
commit90010d2121facc5b8e4c0b6ceebf42f6fbc8fa60 (patch)
treef60d57422c8340be6575f6638ca8b4ced6fd7acf /wk5/pset/speller/dictionary.c
parentfe176dfaa75ae32d407a9fc23a5dfb4d77a51f5e (diff)
Sun, Apr 28, 2024, 8:19 PM -07:00
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 ce23728..87a77a4 100644
--- a/wk5/pset/speller/dictionary.c
+++ b/wk5/pset/speller/dictionary.c
@@ -54,7 +54,7 @@ unsigned int hash(const char *word)
{
val += toupper(word[i]) - 'A';
}
- return val % 26;
+ return (val % 26);
}
// Loads dictionary into memory, returning true if successful, else false