Commit: a7f1aab739bc4ced8b7aa2bab001aff5d3929a0f
Parent: eaa1df96771e7ecdf08cc05e7ca75ae79b93f4a1
Author: Randy Palamar
Date: Sun, 19 Jun 2022 09:52:24 -0600
fix incorrect check in find_ent()
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/jdict.c b/jdict.c
@@ -179,9 +179,9 @@ find_ent(const char *term, DictEnt *ents, size_t nents)
return find_ent(term, ents, nents/2);
if (nents % 2)
- return find_ent(term, &ents[nents/2 + 1], nents/2 - 1);
- else
return find_ent(term, &ents[nents/2 + 1], nents/2);
+ else
+ return find_ent(term, &ents[nents/2 + 1], nents/2 - 1);
}
static char *