aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyounger <aquanox@163.com>2017-05-24 00:36:35 +0800
committerRob Landley <rob@landley.net>2017-05-23 15:29:18 -0500
commit77f9c7700604127f9e9f46d44764ca3db978f706 (patch)
treec0b3c893ebb6de4b26feebc5883cb0d9bad6252b
parent00e6da98f31cce57fbbd768fc78649442d7ba494 (diff)
downloadtoybox-77f9c7700604127f9e9f46d44764ca3db978f706.tar.gz
fixup code style
Signed-off-by: Joyounger <aquanox@163.com>
-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;
}
}