Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Further micro-optimise match_len.

  • Loading branch information...
commit f4165ec263157597223a7896c14c6b365a4759a5 1 parent 261f2ff
@ckolivas authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 rzip.c
View
6 rzip.c
@@ -462,14 +462,14 @@ static inline i64 match_len(rzip_control *control, struct rzip_state *st, i64 p0
i64 *rev)
{
uchar *(*csb)(rzip_control *, i64);
- i64 p, len = 0;
+ i64 p, len;
if (op >= p0)
- return len;
+ return 0;
p = p0;
csb = control->get_sb;
- while ((*csb(control, p) == *csb(control, op)) && (p < end)) {
+ while (p < end && (*csb(control, p) == *csb(control, op))) {
p++;
op++;
}
Please sign in to comment.
Something went wrong with that request. Please try again.