Commit: ba91787263d8138b87a83b3905e1cbf6a57b7a24
Parent: 220ff78deabb4ea1d28282d991b2a673afe77f23
Author: Randy Palamar
Date: Sun, 19 Jun 2022 21:14:14 -0600
minor style fix in find_ent() (no binary change)
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/jdict.c b/jdict.c
@@ -176,13 +176,13 @@ find_ent(const char *term, DictEnt *ents, size_t nents)
r = strcmp(term, ents[nents/2].term);
if (r == 0)
return &ents[nents/2];
- else if (r < 0)
+ if (r < 0)
return find_ent(term, ents, nents/2);
if (nents % 2)
return find_ent(term, &ents[nents/2 + 1], nents/2);
- else
- return find_ent(term, &ents[nents/2 + 1], nents/2 - 1);
+
+ return find_ent(term, &ents[nents/2 + 1], nents/2 - 1);
}
static char *