aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index f8b95222..fcb87029 100644
--- a/main.c
+++ b/main.c
@@ -49,7 +49,7 @@ struct toy_list *toy_find(char *name)
if (middle<bottom || middle>top) return NULL;
result = strcmp(name,toy_list[middle].name);
if (!result) return toy_list+middle;
- if (result<0) top=--middle;
+ if (result<0) top = --middle;
else bottom = ++middle;
}
}