join: Use LIMIT macro
This commit is contained in:
parent
5dab8bbfa9
commit
625f421f5a
5
join.c
5
join.c
|
@ -173,10 +173,7 @@ linecmp(struct line *la, struct line *lb, size_t jfa, size_t jfb)
|
||||||
} else {
|
} else {
|
||||||
status = memcmp(la->fields[jfa].s, lb->fields[jfb].s,
|
status = memcmp(la->fields[jfa].s, lb->fields[jfb].s,
|
||||||
MAX (la->fields[jfa].len, lb->fields[jfb].len));
|
MAX (la->fields[jfa].len, lb->fields[jfb].len));
|
||||||
if (status > 0)
|
LIMIT(status, -1, 1);
|
||||||
status = 1;
|
|
||||||
else if (status < 0)
|
|
||||||
status = -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user