summaryrefslogtreecommitdiff
path: root/libc/stdlib/bsearch.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/bsearch.c')
-rw-r--r--libc/stdlib/bsearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/bsearch.c b/libc/stdlib/bsearch.c
index 989866743..72ba2617a 100644
--- a/libc/stdlib/bsearch.c
+++ b/libc/stdlib/bsearch.c
@@ -28,7 +28,7 @@ register int (*cmp) (); /* comparison function */
while (a <= b)
{
c = (a + b) >> 1; /* == ((a + b) / 2) */
- if (dir = (*cmp) ((base + (c * size)), key))
+ if ((dir = (*cmp) ((base + (c * size)), key)))
{
if (dir > 0)
b = c - 1;