summaryrefslogtreecommitdiffstats
path: root/Src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/parse.c')
-rw-r--r--Src/parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/parse.c b/Src/parse.c
index ab708a279..2b7f8bb59 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -446,7 +446,9 @@ ecstrcode(char *s)
long cmp;
for (pp = &ecstrs; (p = *pp); ) {
- if (!(cmp = p->nfunc - ecnfunc) && !(cmp = (((long)p->hashval) - ((long)val))) && !(cmp = strcmp(p->str, s))) {
+ if (!(cmp = p->nfunc - ecnfunc) &&
+ !(cmp = (int) (p->hashval - val)) &&
+ !(cmp = strcmp(p->str, s))) {
/* Re-use the existing string. */
return p->offs;
}