aboutsummaryrefslogtreecommitdiffstats
path: root/lcc/src/profio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcc/src/profio.c')
-rw-r--r--lcc/src/profio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcc/src/profio.c b/lcc/src/profio.c
index e1ce8da..37fc25b 100644
--- a/lcc/src/profio.c
+++ b/lcc/src/profio.c
@@ -150,9 +150,9 @@ int findcount(char *file, int x, int y) {
struct count *c = cursor->counts;
for (l = 0, u = cursor->count - 1; l <= u; ) {
int k = (l + u)/2;
- if (c[k].y > y || c[k].y == y && c[k].x > x)
+ if (c[k].y > y || (c[k].y == y && c[k].x > x))
u = k - 1;
- else if (c[k].y < y || c[k].y == y && c[k].x < x)
+ else if (c[k].y < y || (c[k].y == y && c[k].x < x))
l = k + 1;
else
return c[k].count;